@@ -130,119 +130,6 @@ PHP_FUNCTION(openssl_pkey_derive);
130
130
PHP_FUNCTION (openssl_random_pseudo_bytes );
131
131
132
132
/* {{{ arginfo */
133
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_pkcs12_export_to_file , 0 , 0 , 4 )
134
- ZEND_ARG_INFO (0 , x509 )
135
- ZEND_ARG_INFO (0 , filename )
136
- ZEND_ARG_INFO (0 , priv_key )
137
- ZEND_ARG_INFO (0 , pass )
138
- ZEND_ARG_INFO (0 , args ) /* array */
139
- ZEND_END_ARG_INFO ()
140
-
141
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_pkcs12_export , 0 , 0 , 4 )
142
- ZEND_ARG_INFO (0 , x509 )
143
- ZEND_ARG_INFO (1 , out )
144
- ZEND_ARG_INFO (0 , priv_key )
145
- ZEND_ARG_INFO (0 , pass )
146
- ZEND_ARG_INFO (0 , args ) /* array */
147
- ZEND_END_ARG_INFO ()
148
-
149
- ZEND_BEGIN_ARG_INFO (arginfo_openssl_pkcs12_read , 0 )
150
- ZEND_ARG_INFO (0 , PKCS12 )
151
- ZEND_ARG_INFO (1 , certs ) /* array */
152
- ZEND_ARG_INFO (0 , pass )
153
- ZEND_END_ARG_INFO ()
154
-
155
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_csr_export_to_file , 0 , 0 , 2 )
156
- ZEND_ARG_INFO (0 , csr )
157
- ZEND_ARG_INFO (0 , outfilename )
158
- ZEND_ARG_INFO (0 , notext )
159
- ZEND_END_ARG_INFO ()
160
-
161
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_csr_export , 0 , 0 , 2 )
162
- ZEND_ARG_INFO (0 , csr )
163
- ZEND_ARG_INFO (1 , out )
164
- ZEND_ARG_INFO (0 , notext )
165
- ZEND_END_ARG_INFO ()
166
-
167
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_csr_sign , 0 , 0 , 4 )
168
- ZEND_ARG_INFO (0 , csr )
169
- ZEND_ARG_INFO (0 , x509 )
170
- ZEND_ARG_INFO (0 , priv_key )
171
- ZEND_ARG_INFO (0 , days )
172
- ZEND_ARG_INFO (0 , config_args ) /* array */
173
- ZEND_ARG_INFO (0 , serial )
174
- ZEND_END_ARG_INFO ()
175
-
176
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_csr_new , 0 , 0 , 2 )
177
- ZEND_ARG_INFO (0 , dn ) /* array */
178
- ZEND_ARG_INFO (1 , privkey )
179
- ZEND_ARG_INFO (0 , configargs )
180
- ZEND_ARG_INFO (0 , extraattribs )
181
- ZEND_END_ARG_INFO ()
182
-
183
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_csr_get_subject , 0 , 0 , 1 )
184
- ZEND_ARG_INFO (0 , csr )
185
- ZEND_ARG_INFO (0 , use_shortnames )
186
- ZEND_END_ARG_INFO ()
187
-
188
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_csr_get_public_key , 0 , 0 , 1 )
189
- ZEND_ARG_INFO (0 , csr )
190
- ZEND_ARG_INFO (0 , use_shortnames )
191
- ZEND_END_ARG_INFO ()
192
-
193
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_pkey_new , 0 , 0 , 0 )
194
- ZEND_ARG_INFO (0 , configargs ) /* array */
195
- ZEND_END_ARG_INFO ()
196
-
197
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_pkey_export_to_file , 0 , 0 , 2 )
198
- ZEND_ARG_INFO (0 , key )
199
- ZEND_ARG_INFO (0 , outfilename )
200
- ZEND_ARG_INFO (0 , passphrase )
201
- ZEND_ARG_INFO (0 , config_args ) /* array */
202
- ZEND_END_ARG_INFO ()
203
-
204
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_pkey_export , 0 , 0 , 2 )
205
- ZEND_ARG_INFO (0 , key )
206
- ZEND_ARG_INFO (1 , out )
207
- ZEND_ARG_INFO (0 , passphrase )
208
- ZEND_ARG_INFO (0 , config_args ) /* array */
209
- ZEND_END_ARG_INFO ()
210
-
211
- ZEND_BEGIN_ARG_INFO (arginfo_openssl_pkey_get_public , 0 )
212
- ZEND_ARG_INFO (0 , cert )
213
- ZEND_END_ARG_INFO ()
214
-
215
- ZEND_BEGIN_ARG_INFO (arginfo_openssl_pkey_free , 0 )
216
- ZEND_ARG_INFO (0 , key )
217
- ZEND_END_ARG_INFO ()
218
-
219
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_pkey_get_private , 0 , 0 , 1 )
220
- ZEND_ARG_INFO (0 , key )
221
- ZEND_ARG_INFO (0 , passphrase )
222
- ZEND_END_ARG_INFO ()
223
-
224
- ZEND_BEGIN_ARG_INFO (arginfo_openssl_pkey_get_details , 0 )
225
- ZEND_ARG_INFO (0 , key )
226
- ZEND_END_ARG_INFO ()
227
-
228
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_pbkdf2 , 0 , 0 , 4 )
229
- ZEND_ARG_INFO (0 , password )
230
- ZEND_ARG_INFO (0 , salt )
231
- ZEND_ARG_INFO (0 , key_length )
232
- ZEND_ARG_INFO (0 , iterations )
233
- ZEND_ARG_INFO (0 , digest_algorithm )
234
- ZEND_END_ARG_INFO ()
235
-
236
- ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_pkcs7_verify , 0 , 0 , 2 )
237
- ZEND_ARG_INFO (0 , filename )
238
- ZEND_ARG_INFO (0 , flags )
239
- ZEND_ARG_INFO (0 , signerscerts )
240
- ZEND_ARG_INFO (0 , cainfo ) /* array */
241
- ZEND_ARG_INFO (0 , extracerts )
242
- ZEND_ARG_INFO (0 , content )
243
- ZEND_ARG_INFO (0 , pk7 )
244
- ZEND_END_ARG_INFO ()
245
-
246
133
ZEND_BEGIN_ARG_INFO_EX (arginfo_openssl_pkcs7_encrypt , 0 , 0 , 4 )
247
134
ZEND_ARG_INFO (0 , infile )
248
135
ZEND_ARG_INFO (0 , outfile )
@@ -3646,7 +3533,7 @@ PHP_FUNCTION(openssl_csr_new)
3646
3533
}
3647
3534
/* }}} */
3648
3535
3649
- /* {{{ proto mixed openssl_csr_get_subject(mixed csr)
3536
+ /* {{{ proto mixed openssl_csr_get_subject(mixed csr [, bool use_shortnames = TRUE] )
3650
3537
Returns the subject of a CERT or FALSE on error */
3651
3538
PHP_FUNCTION (openssl_csr_get_subject )
3652
3539
{
@@ -3677,7 +3564,7 @@ PHP_FUNCTION(openssl_csr_get_subject)
3677
3564
}
3678
3565
/* }}} */
3679
3566
3680
- /* {{{ proto mixed openssl_csr_get_public_key(mixed csr)
3567
+ /* {{{ proto mixed openssl_csr_get_public_key(mixed csr [, bool use_shortnames = TRUE] )
3681
3568
Returns the subject of a CERT or FALSE on error */
3682
3569
PHP_FUNCTION (openssl_csr_get_public_key )
3683
3570
{
@@ -4338,7 +4225,7 @@ static zend_bool php_openssl_pkey_init_dh(DH *dh, zval *data)
4338
4225
}
4339
4226
/* }}} */
4340
4227
4341
- /* {{{ proto resource openssl_pkey_new([array configargs])
4228
+ /* {{{ proto mixed openssl_pkey_new([array configargs])
4342
4229
Generates a new private key */
4343
4230
PHP_FUNCTION (openssl_pkey_new )
4344
4231
{
@@ -4551,7 +4438,7 @@ PHP_FUNCTION(openssl_pkey_new)
4551
4438
}
4552
4439
/* }}} */
4553
4440
4554
- /* {{{ proto bool openssl_pkey_export_to_file(mixed key, string outfilename [, string passphrase, array config_args)
4441
+ /* {{{ proto bool openssl_pkey_export_to_file(mixed key, string outfilename [, string passphrase [ , array config_args]] )
4555
4442
Gets an exportable representation of a key into a file */
4556
4443
PHP_FUNCTION (openssl_pkey_export_to_file )
4557
4444
{
@@ -4724,7 +4611,7 @@ PHP_FUNCTION(openssl_pkey_export)
4724
4611
}
4725
4612
/* }}} */
4726
4613
4727
- /* {{{ proto int openssl_pkey_get_public(mixed cert)
4614
+ /* {{{ proto mixed openssl_pkey_get_public(mixed cert)
4728
4615
Gets public key from X.509 certificate */
4729
4616
PHP_FUNCTION (openssl_pkey_get_public )
4730
4617
{
@@ -4761,7 +4648,7 @@ PHP_FUNCTION(openssl_pkey_free)
4761
4648
}
4762
4649
/* }}} */
4763
4650
4764
- /* {{{ proto int openssl_pkey_get_private(string key [, string passphrase])
4651
+ /* {{{ proto mixed openssl_pkey_get_private(string key [, string passphrase])
4765
4652
Gets private keys */
4766
4653
PHP_FUNCTION (openssl_pkey_get_private )
4767
4654
{
@@ -4787,7 +4674,7 @@ PHP_FUNCTION(openssl_pkey_get_private)
4787
4674
4788
4675
/* }}} */
4789
4676
4790
- /* {{{ proto resource openssl_pkey_get_details(resource key)
4677
+ /* {{{ proto mixed openssl_pkey_get_details(resource key)
4791
4678
returns an array with the key details (bits, pkey, type)*/
4792
4679
PHP_FUNCTION (openssl_pkey_get_details )
4793
4680
{
@@ -5056,7 +4943,7 @@ PHP_FUNCTION(openssl_pkey_derive)
5056
4943
/* }}} */
5057
4944
5058
4945
5059
- /* {{{ proto string openssl_pbkdf2(string password, string salt, int key_length, int iterations [, string digest_method = "sha1"])
4946
+ /* {{{ proto mixed openssl_pbkdf2(string password, string salt, int key_length, int iterations [, string digest_method = "sha1"])
5060
4947
Generates a PKCS5 v2 PBKDF2 string, defaults to sha1 */
5061
4948
PHP_FUNCTION (openssl_pbkdf2 )
5062
4949
{
0 commit comments