Wrapper::update_db()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace EasyRSA;
6
7
/**
8
 * @deprecated Please use Commands class instead
9
 * @codeCoverageIgnore
10
 */
11
class Wrapper extends Commands
12
{
13
    /**
14
     * @return array<string>
15
     */
16
    public function init_pki(): array
17
    {
18
        return $this->initPKI();
19
    }
20
21
    /**
22
     * @param bool $nopass
23
     *
24
     * @return array<string>
25
     */
26
    public function build_ca(bool $nopass = false): array
27
    {
28
        return $this->buildCA($nopass);
29
    }
30
31
    /**
32
     * @return array<string>
33
     */
34
    public function gen_dh(): array
35
    {
36
        return $this->genDH();
37
    }
38
39
    /**
40
     * @param string $name
41
     * @param bool   $nopass
42
     *
43
     * @return array<string>
44
     */
45
    public function gen_req(string $name, bool $nopass = false): array
46
    {
47
        return $this->genReq($name, $nopass);
48
    }
49
50
    /**
51
     * @param string $filename
52
     *
53
     * @return array<string>
54
     */
55
    public function sign_req_client(string $filename): array
56
    {
57
        return $this->signReqClient($filename);
58
    }
59
60
    /**
61
     * @param string $filename
62
     *
63
     * @return array<string>
64
     */
65
    public function sign_req_server(string $filename): array
66
    {
67
        return $this->signReqServer($filename);
68
    }
69
70
    /**
71
     * @param string $name
72
     * @param bool   $nopass
73
     *
74
     * @return array<string>
75
     */
76
    public function build_client_full(string $name, bool $nopass = false): array
77
    {
78
        return $this->buildClientFull($name, $nopass);
79
    }
80
81
    /**
82
     * @param string $name
83
     * @param bool   $nopass
84
     *
85
     * @return array<string>
86
     */
87
    public function build_server_full(string $name, bool $nopass = false): array
88
    {
89
        return $this->buildServerFull($name, $nopass);
90
    }
91
92
    /**
93
     * @return array<string>
94
     */
95
    public function gen_crl(): array
96
    {
97
        return $this->genCRL();
98
    }
99
100
    /**
101
     * @return array<string>
102
     */
103
    public function update_db(): array
104
    {
105
        return $this->updateDB();
106
    }
107
108
    /**
109
     * @param string $filename
110
     *
111
     * @return array<string>
112
     */
113
    public function show_req(string $filename): array
114
    {
115
        return $this->showReq($filename);
116
    }
117
118
    /**
119
     * @param string $filename
120
     *
121
     * @return array<string>
122
     */
123
    public function show_cert(string $filename): array
124
    {
125
        return $this->showCert($filename);
126
    }
127
128
    /**
129
     * @param string $filename
130
     * @param string $short_basename
131
     *
132
     * @return array<string>
133
     */
134
    public function import_req(string $filename, string $short_basename): array
135
    {
136
        return $this->importReq($filename, $short_basename);
137
    }
138
139
    /**
140
     * @param string $filename
141
     *
142
     * @return array<string>
143
     */
144
    public function export_p7(string $filename): array
145
    {
146
        return $this->exportP7($filename);
147
    }
148
149
    /**
150
     * @param string $filename
151
     *
152
     * @return array<string>
153
     */
154
    public function export_p12(string $filename): array
155
    {
156
        return $this->exportP12($filename);
157
    }
158
159
    /**
160
     * @param string $filename
161
     *
162
     * @return array<string>
163
     */
164
    public function set_rsa_pass(string $filename): array
165
    {
166
        return $this->setRsaPass($filename);
167
    }
168
169
    /**
170
     * @param string $filename
171
     *
172
     * @return array<string>
173
     */
174
    public function set_ec_pass(string $filename): array
175
    {
176
        return $this->setEcPass($filename);
177
    }
178
}
179