php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
openssl_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 32bd0ec5db046bfe3bba8a5d3fe1c0c51ff89e00 */
3
4ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_x509_export_to_file, 0, 2, _IS_BOOL, 0)
6 ZEND_ARG_TYPE_INFO(0, output_filename, IS_STRING, 0)
9
10ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_x509_export, 0, 2, _IS_BOOL, 0)
12 ZEND_ARG_INFO(1, output)
15
16ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_x509_fingerprint, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
18 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, digest_algo, IS_STRING, 0, "\"sha1\"")
21
22ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_x509_check_private_key, 0, 2, _IS_BOOL, 0)
24 ZEND_ARG_INFO(0, private_key)
26
27ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_x509_verify, 0, 2, IS_LONG, 0)
29 ZEND_ARG_INFO(0, public_key)
31
34 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, short_names, _IS_BOOL, 0, "true")
36
37ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_x509_checkpurpose, 0, 2, MAY_BE_BOOL|MAY_BE_LONG)
39 ZEND_ARG_TYPE_INFO(0, purpose, IS_LONG, 0)
41 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, untrusted_certificates_file, IS_STRING, 1, "null")
43
47
48ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_x509_free, 0, 1, IS_VOID, 0)
49 ZEND_ARG_OBJ_INFO(0, certificate, OpenSSLCertificate, 0)
51
52ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_pkcs12_export_to_file, 0, 4, _IS_BOOL, 0)
54 ZEND_ARG_TYPE_INFO(0, output_filename, IS_STRING, 0)
55 ZEND_ARG_INFO(0, private_key)
56 ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0)
59
60ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_pkcs12_export, 0, 4, _IS_BOOL, 0)
62 ZEND_ARG_INFO(1, output)
63 ZEND_ARG_INFO(0, private_key)
64 ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0)
67
68ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_pkcs12_read, 0, 3, _IS_BOOL, 0)
69 ZEND_ARG_TYPE_INFO(0, pkcs12, IS_STRING, 0)
70 ZEND_ARG_INFO(1, certificates)
71 ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0)
73
74ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_csr_export_to_file, 0, 2, _IS_BOOL, 0)
76 ZEND_ARG_TYPE_INFO(0, output_filename, IS_STRING, 0)
79
80ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_csr_export, 0, 2, _IS_BOOL, 0)
82 ZEND_ARG_INFO(1, output)
85
89 ZEND_ARG_INFO(0, private_key)
90 ZEND_ARG_TYPE_INFO(0, days, IS_LONG, 0)
93 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, serial_hex, IS_STRING, 1, "null")
95
97 ZEND_ARG_TYPE_INFO(0, distinguished_names, IS_ARRAY, 0)
98 ZEND_ARG_INFO(1, private_key)
100 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extra_attributes, IS_ARRAY, 1, "null")
102
103ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_csr_get_subject, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
105 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, short_names, _IS_BOOL, 0, "true")
107
108ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_openssl_csr_get_public_key, 0, 1, OpenSSLAsymmetricKey, MAY_BE_FALSE)
110 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, short_names, _IS_BOOL, 0, "true")
112
116
117ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_pkey_export_to_file, 0, 2, _IS_BOOL, 0)
119 ZEND_ARG_TYPE_INFO(0, output_filename, IS_STRING, 0)
120 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, passphrase, IS_STRING, 1, "null")
123
124ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_pkey_export, 0, 2, _IS_BOOL, 0)
126 ZEND_ARG_INFO(1, output)
127 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, passphrase, IS_STRING, 1, "null")
130
132 ZEND_ARG_INFO(0, public_key)
134
135#define arginfo_openssl_get_publickey arginfo_openssl_pkey_get_public
136
137ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_pkey_free, 0, 1, IS_VOID, 0)
140
141#define arginfo_openssl_free_key arginfo_openssl_pkey_free
142
144 ZEND_ARG_INFO(0, private_key)
145 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, passphrase, IS_STRING, 1, "null")
147
148#define arginfo_openssl_get_privatekey arginfo_openssl_pkey_get_private
149
150ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_pkey_get_details, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
153
155 ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
156 ZEND_ARG_TYPE_INFO(0, salt, IS_STRING, 0)
157 ZEND_ARG_TYPE_INFO(0, key_length, IS_LONG, 0)
158 ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0)
159 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, digest_algo, IS_STRING, 0, "\"sha1\"")
161
162ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_pkcs7_verify, 0, 2, MAY_BE_BOOL|MAY_BE_LONG)
163 ZEND_ARG_TYPE_INFO(0, input_filename, IS_STRING, 0)
165 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, signers_certificates_filename, IS_STRING, 1, "null")
167 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, untrusted_certificates_filename, IS_STRING, 1, "null")
169 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, output_filename, IS_STRING, 1, "null")
171
172ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_pkcs7_encrypt, 0, 4, _IS_BOOL, 0)
173 ZEND_ARG_TYPE_INFO(0, input_filename, IS_STRING, 0)
174 ZEND_ARG_TYPE_INFO(0, output_filename, IS_STRING, 0)
175 ZEND_ARG_INFO(0, certificate)
176 ZEND_ARG_TYPE_INFO(0, headers, IS_ARRAY, 1)
178 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, cipher_algo, IS_LONG, 0, "OPENSSL_CIPHER_AES_128_CBC")
180
181ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_pkcs7_sign, 0, 5, _IS_BOOL, 0)
182 ZEND_ARG_TYPE_INFO(0, input_filename, IS_STRING, 0)
183 ZEND_ARG_TYPE_INFO(0, output_filename, IS_STRING, 0)
185 ZEND_ARG_INFO(0, private_key)
186 ZEND_ARG_TYPE_INFO(0, headers, IS_ARRAY, 1)
187 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "PKCS7_DETACHED")
188 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, untrusted_certificates_filename, IS_STRING, 1, "null")
190
191ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_pkcs7_decrypt, 0, 3, _IS_BOOL, 0)
192 ZEND_ARG_TYPE_INFO(0, input_filename, IS_STRING, 0)
193 ZEND_ARG_TYPE_INFO(0, output_filename, IS_STRING, 0)
194 ZEND_ARG_INFO(0, certificate)
195 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, private_key, "null")
197
198ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_pkcs7_read, 0, 2, _IS_BOOL, 0)
200 ZEND_ARG_INFO(1, certificates)
202
203ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_cms_verify, 0, 1, _IS_BOOL, 0)
204 ZEND_ARG_TYPE_INFO(0, input_filename, IS_STRING, 0)
206 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, certificates, IS_STRING, 1, "null")
208 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, untrusted_certificates_filename, IS_STRING, 1, "null")
212 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_LONG, 0, "OPENSSL_ENCODING_SMIME")
214
215ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_cms_encrypt, 0, 4, _IS_BOOL, 0)
216 ZEND_ARG_TYPE_INFO(0, input_filename, IS_STRING, 0)
217 ZEND_ARG_TYPE_INFO(0, output_filename, IS_STRING, 0)
218 ZEND_ARG_INFO(0, certificate)
219 ZEND_ARG_TYPE_INFO(0, headers, IS_ARRAY, 1)
221 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_LONG, 0, "OPENSSL_ENCODING_SMIME")
222 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, cipher_algo, IS_LONG, 0, "OPENSSL_CIPHER_AES_128_CBC")
224
225ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_cms_sign, 0, 5, _IS_BOOL, 0)
226 ZEND_ARG_TYPE_INFO(0, input_filename, IS_STRING, 0)
227 ZEND_ARG_TYPE_INFO(0, output_filename, IS_STRING, 0)
229 ZEND_ARG_INFO(0, private_key)
230 ZEND_ARG_TYPE_INFO(0, headers, IS_ARRAY, 1)
232 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_LONG, 0, "OPENSSL_ENCODING_SMIME")
233 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, untrusted_certificates_filename, IS_STRING, 1, "null")
235
236ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_cms_decrypt, 0, 3, _IS_BOOL, 0)
237 ZEND_ARG_TYPE_INFO(0, input_filename, IS_STRING, 0)
238 ZEND_ARG_TYPE_INFO(0, output_filename, IS_STRING, 0)
239 ZEND_ARG_INFO(0, certificate)
240 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, private_key, "null")
241 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_LONG, 0, "OPENSSL_ENCODING_SMIME")
243
244ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_cms_read, 0, 2, _IS_BOOL, 0)
245 ZEND_ARG_TYPE_INFO(0, input_filename, IS_STRING, 0)
246 ZEND_ARG_INFO(1, certificates)
248
249ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_private_encrypt, 0, 3, _IS_BOOL, 0)
251 ZEND_ARG_INFO(1, encrypted_data)
252 ZEND_ARG_INFO(0, private_key)
253 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, padding, IS_LONG, 0, "OPENSSL_PKCS1_PADDING")
255
256ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_private_decrypt, 0, 3, _IS_BOOL, 0)
258 ZEND_ARG_INFO(1, decrypted_data)
259 ZEND_ARG_INFO(0, private_key)
260 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, padding, IS_LONG, 0, "OPENSSL_PKCS1_PADDING")
262
263ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_public_encrypt, 0, 3, _IS_BOOL, 0)
265 ZEND_ARG_INFO(1, encrypted_data)
266 ZEND_ARG_INFO(0, public_key)
267 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, padding, IS_LONG, 0, "OPENSSL_PKCS1_PADDING")
269
270ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_public_decrypt, 0, 3, _IS_BOOL, 0)
272 ZEND_ARG_INFO(1, decrypted_data)
273 ZEND_ARG_INFO(0, public_key)
274 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, padding, IS_LONG, 0, "OPENSSL_PKCS1_PADDING")
276
277ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_error_string, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
279
280ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_sign, 0, 3, _IS_BOOL, 0)
282 ZEND_ARG_INFO(1, signature)
283 ZEND_ARG_INFO(0, private_key)
284 ZEND_ARG_TYPE_MASK(0, algorithm, MAY_BE_STRING|MAY_BE_LONG, "OPENSSL_ALGO_SHA1")
286
289 ZEND_ARG_TYPE_INFO(0, signature, IS_STRING, 0)
290 ZEND_ARG_INFO(0, public_key)
291 ZEND_ARG_TYPE_MASK(0, algorithm, MAY_BE_STRING|MAY_BE_LONG, "OPENSSL_ALGO_SHA1")
293
296 ZEND_ARG_INFO(1, sealed_data)
297 ZEND_ARG_INFO(1, encrypted_keys)
298 ZEND_ARG_TYPE_INFO(0, public_key, IS_ARRAY, 0)
299 ZEND_ARG_TYPE_INFO(0, cipher_algo, IS_STRING, 0)
302
303ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_open, 0, 5, _IS_BOOL, 0)
305 ZEND_ARG_INFO(1, output)
306 ZEND_ARG_TYPE_INFO(0, encrypted_key, IS_STRING, 0)
307 ZEND_ARG_INFO(0, private_key)
308 ZEND_ARG_TYPE_INFO(0, cipher_algo, IS_STRING, 0)
311
312ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_get_md_methods, 0, 0, IS_ARRAY, 0)
313 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, aliases, _IS_BOOL, 0, "false")
315
316#define arginfo_openssl_get_cipher_methods arginfo_openssl_get_md_methods
317
318#if defined(HAVE_EVP_PKEY_EC)
319ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_get_curve_names, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
321#endif
322
325 ZEND_ARG_TYPE_INFO(0, digest_algo, IS_STRING, 0)
326 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, binary, _IS_BOOL, 0, "false")
328
331 ZEND_ARG_TYPE_INFO(0, cipher_algo, IS_STRING, 0)
332 ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0)
337 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, tag_length, IS_LONG, 0, "16")
339
342 ZEND_ARG_TYPE_INFO(0, cipher_algo, IS_STRING, 0)
343 ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0)
349
350ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_cipher_iv_length, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
351 ZEND_ARG_TYPE_INFO(0, cipher_algo, IS_STRING, 0)
353
354#define arginfo_openssl_cipher_key_length arginfo_openssl_cipher_iv_length
355
356ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_dh_compute_key, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
357 ZEND_ARG_TYPE_INFO(0, public_key, IS_STRING, 0)
358 ZEND_ARG_OBJ_INFO(0, private_key, OpenSSLAsymmetricKey, 0)
360
362 ZEND_ARG_INFO(0, public_key)
363 ZEND_ARG_INFO(0, private_key)
364 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, key_length, IS_LONG, 0, "0")
366
367ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_random_pseudo_bytes, 0, 1, IS_STRING, 0)
368 ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
369 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, strong_result, "null")
371
373 ZEND_ARG_OBJ_INFO(0, private_key, OpenSSLAsymmetricKey, 0)
374 ZEND_ARG_TYPE_INFO(0, challenge, IS_STRING, 0)
375 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, digest_algo, IS_LONG, 0, "OPENSSL_ALGO_MD5")
377
378ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_spki_verify, 0, 1, _IS_BOOL, 0)
379 ZEND_ARG_TYPE_INFO(0, spki, IS_STRING, 0)
381
383 ZEND_ARG_TYPE_INFO(0, spki, IS_STRING, 0)
385
386#define arginfo_openssl_spki_export_challenge arginfo_openssl_spki_export
387
388ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_get_cert_locations, 0, 0, IS_ARRAY, 0)
390
391#if defined(HAVE_OPENSSL_ARGON2)
392ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_password_hash, 0, 2, IS_STRING, 0)
393 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
394 ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
397
398ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_password_verify, 0, 3, _IS_BOOL, 0)
399 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
400 ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
403#endif
404
452#if defined(HAVE_EVP_PKEY_EC)
454#endif
468#if defined(HAVE_OPENSSL_ARGON2)
471#endif
472
473static const zend_function_entry ext_functions[] = {
474 ZEND_FE(openssl_x509_export_to_file, arginfo_openssl_x509_export_to_file)
475 ZEND_FE(openssl_x509_export, arginfo_openssl_x509_export)
476 ZEND_FE(openssl_x509_fingerprint, arginfo_openssl_x509_fingerprint)
477 ZEND_FE(openssl_x509_check_private_key, arginfo_openssl_x509_check_private_key)
478 ZEND_FE(openssl_x509_verify, arginfo_openssl_x509_verify)
479 ZEND_FE(openssl_x509_parse, arginfo_openssl_x509_parse)
480 ZEND_FE(openssl_x509_checkpurpose, arginfo_openssl_x509_checkpurpose)
481 ZEND_FE(openssl_x509_read, arginfo_openssl_x509_read)
482 ZEND_RAW_FENTRY("openssl_x509_free", zif_openssl_x509_free, arginfo_openssl_x509_free, ZEND_ACC_DEPRECATED, NULL, NULL)
483 ZEND_FE(openssl_pkcs12_export_to_file, arginfo_openssl_pkcs12_export_to_file)
484 ZEND_FE(openssl_pkcs12_export, arginfo_openssl_pkcs12_export)
485 ZEND_FE(openssl_pkcs12_read, arginfo_openssl_pkcs12_read)
486 ZEND_FE(openssl_csr_export_to_file, arginfo_openssl_csr_export_to_file)
487 ZEND_FE(openssl_csr_export, arginfo_openssl_csr_export)
488 ZEND_FE(openssl_csr_sign, arginfo_openssl_csr_sign)
489 ZEND_FE(openssl_csr_new, arginfo_openssl_csr_new)
490 ZEND_FE(openssl_csr_get_subject, arginfo_openssl_csr_get_subject)
491 ZEND_FE(openssl_csr_get_public_key, arginfo_openssl_csr_get_public_key)
492 ZEND_FE(openssl_pkey_new, arginfo_openssl_pkey_new)
493 ZEND_FE(openssl_pkey_export_to_file, arginfo_openssl_pkey_export_to_file)
494 ZEND_FE(openssl_pkey_export, arginfo_openssl_pkey_export)
495 ZEND_FE(openssl_pkey_get_public, arginfo_openssl_pkey_get_public)
496 ZEND_RAW_FENTRY("openssl_get_publickey", zif_openssl_pkey_get_public, arginfo_openssl_get_publickey, 0, NULL, NULL)
497 ZEND_RAW_FENTRY("openssl_pkey_free", zif_openssl_pkey_free, arginfo_openssl_pkey_free, ZEND_ACC_DEPRECATED, NULL, NULL)
498 ZEND_RAW_FENTRY("openssl_free_key", zif_openssl_pkey_free, arginfo_openssl_free_key, ZEND_ACC_DEPRECATED, NULL, NULL)
499 ZEND_FE(openssl_pkey_get_private, arginfo_openssl_pkey_get_private)
500 ZEND_RAW_FENTRY("openssl_get_privatekey", zif_openssl_pkey_get_private, arginfo_openssl_get_privatekey, 0, NULL, NULL)
501 ZEND_FE(openssl_pkey_get_details, arginfo_openssl_pkey_get_details)
502 ZEND_FE(openssl_pbkdf2, arginfo_openssl_pbkdf2)
503 ZEND_FE(openssl_pkcs7_verify, arginfo_openssl_pkcs7_verify)
504 ZEND_FE(openssl_pkcs7_encrypt, arginfo_openssl_pkcs7_encrypt)
505 ZEND_FE(openssl_pkcs7_sign, arginfo_openssl_pkcs7_sign)
506 ZEND_FE(openssl_pkcs7_decrypt, arginfo_openssl_pkcs7_decrypt)
507 ZEND_FE(openssl_pkcs7_read, arginfo_openssl_pkcs7_read)
508 ZEND_FE(openssl_cms_verify, arginfo_openssl_cms_verify)
509 ZEND_FE(openssl_cms_encrypt, arginfo_openssl_cms_encrypt)
510 ZEND_FE(openssl_cms_sign, arginfo_openssl_cms_sign)
511 ZEND_FE(openssl_cms_decrypt, arginfo_openssl_cms_decrypt)
512 ZEND_FE(openssl_cms_read, arginfo_openssl_cms_read)
513 ZEND_FE(openssl_private_encrypt, arginfo_openssl_private_encrypt)
514 ZEND_FE(openssl_private_decrypt, arginfo_openssl_private_decrypt)
515 ZEND_FE(openssl_public_encrypt, arginfo_openssl_public_encrypt)
516 ZEND_FE(openssl_public_decrypt, arginfo_openssl_public_decrypt)
517 ZEND_FE(openssl_error_string, arginfo_openssl_error_string)
518 ZEND_FE(openssl_sign, arginfo_openssl_sign)
519 ZEND_FE(openssl_verify, arginfo_openssl_verify)
520 ZEND_FE(openssl_seal, arginfo_openssl_seal)
521 ZEND_FE(openssl_open, arginfo_openssl_open)
522 ZEND_FE(openssl_get_md_methods, arginfo_openssl_get_md_methods)
524#if defined(HAVE_EVP_PKEY_EC)
525 ZEND_FE(openssl_get_curve_names, arginfo_openssl_get_curve_names)
526#endif
527 ZEND_FE(openssl_digest, arginfo_openssl_digest)
528 ZEND_FE(openssl_encrypt, arginfo_openssl_encrypt)
529 ZEND_FE(openssl_decrypt, arginfo_openssl_decrypt)
530 ZEND_FE(openssl_cipher_iv_length, arginfo_openssl_cipher_iv_length)
532 ZEND_FE(openssl_dh_compute_key, arginfo_openssl_dh_compute_key)
533 ZEND_FE(openssl_pkey_derive, arginfo_openssl_pkey_derive)
534 ZEND_FE(openssl_random_pseudo_bytes, arginfo_openssl_random_pseudo_bytes)
535 ZEND_FE(openssl_spki_new, arginfo_openssl_spki_new)
536 ZEND_FE(openssl_spki_verify, arginfo_openssl_spki_verify)
537 ZEND_FE(openssl_spki_export, arginfo_openssl_spki_export)
539 ZEND_FE(openssl_get_cert_locations, arginfo_openssl_get_cert_locations)
540#if defined(HAVE_OPENSSL_ARGON2)
541 ZEND_FE(openssl_password_hash, arginfo_openssl_password_hash)
542 ZEND_FE(openssl_password_verify, arginfo_openssl_password_verify)
543#endif
545};
546
547static void register_openssl_symbols(int module_number)
548{
562#if !defined(OPENSSL_NO_MD4)
564#endif
565#if !defined(OPENSSL_NO_MD2)
567#endif
568#if PHP_OPENSSL_API_VERSION < 0x10100
570#endif
575#if !defined(OPENSSL_NO_RMD160)
577#endif
588 REGISTER_LONG_CONSTANT("OPENSSL_CMS_DETACHED", CMS_DETACHED, CONST_PERSISTENT);
589 REGISTER_LONG_CONSTANT("OPENSSL_CMS_TEXT", CMS_TEXT, CONST_PERSISTENT);
590 REGISTER_LONG_CONSTANT("OPENSSL_CMS_NOINTERN", CMS_NOINTERN, CONST_PERSISTENT);
591 REGISTER_LONG_CONSTANT("OPENSSL_CMS_NOVERIFY", CMS_NOVERIFY, CONST_PERSISTENT);
592 REGISTER_LONG_CONSTANT("OPENSSL_CMS_NOCERTS", CMS_NOCERTS, CONST_PERSISTENT);
593 REGISTER_LONG_CONSTANT("OPENSSL_CMS_NOATTR", CMS_NOATTR, CONST_PERSISTENT);
594 REGISTER_LONG_CONSTANT("OPENSSL_CMS_BINARY", CMS_BINARY, CONST_PERSISTENT);
595 REGISTER_LONG_CONSTANT("OPENSSL_CMS_NOSIGS", CMS_NOSIGS, CONST_PERSISTENT);
596 REGISTER_LONG_CONSTANT("OPENSSL_CMS_OLDMIMETYPE", CMS_NOOLDMIMETYPE, CONST_PERSISTENT);
597 REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_PADDING", RSA_PKCS1_PADDING, CONST_PERSISTENT);
598#if defined(RSA_SSLV23_PADDING)
599 REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_PERSISTENT);
600#endif
601 REGISTER_LONG_CONSTANT("OPENSSL_NO_PADDING", RSA_NO_PADDING, CONST_PERSISTENT);
602 REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_OAEP_PADDING", RSA_PKCS1_OAEP_PADDING, CONST_PERSISTENT);
604#if !defined(OPENSSL_NO_RC2)
606#endif
607#if !defined(OPENSSL_NO_RC2)
609#endif
610#if !defined(OPENSSL_NO_RC2)
612#endif
613#if !defined(OPENSSL_NO_DES)
615#endif
616#if !defined(OPENSSL_NO_DES)
618#endif
619#if !defined(OPENSSL_NO_AES)
621#endif
622#if !defined(OPENSSL_NO_AES)
624#endif
625#if !defined(OPENSSL_NO_AES)
627#endif
629#if !defined(OPENSSL_NO_DSA)
631#endif
633#if defined(HAVE_EVP_PKEY_EC)
635#endif
636#if PHP_OPENSSL_API_VERSION >= 0x30000
638#endif
639#if PHP_OPENSSL_API_VERSION >= 0x30000
641#endif
642#if PHP_OPENSSL_API_VERSION >= 0x30000
644#endif
645#if PHP_OPENSSL_API_VERSION >= 0x30000
647#endif
651#if !defined(OPENSSL_NO_TLSEXT)
652 REGISTER_LONG_CONSTANT("OPENSSL_TLSEXT_SERVER_NAME", 1, CONST_PERSISTENT);
653#endif
654 REGISTER_LONG_CONSTANT("OPENSSL_ENCODING_DER", ENCODING_DER, CONST_PERSISTENT);
655 REGISTER_LONG_CONSTANT("OPENSSL_ENCODING_SMIME", ENCODING_SMIME, CONST_PERSISTENT);
656 REGISTER_LONG_CONSTANT("OPENSSL_ENCODING_PEM", ENCODING_PEM, CONST_PERSISTENT);
657
658
659 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_x509_check_private_key", sizeof("openssl_x509_check_private_key") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
660
661 zend_attribute *attribute_Deprecated_func_openssl_x509_free_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_x509_free", sizeof("openssl_x509_free") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
662 zval attribute_Deprecated_func_openssl_x509_free_0_arg0;
663 zend_string *attribute_Deprecated_func_openssl_x509_free_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
664 ZVAL_STR(&attribute_Deprecated_func_openssl_x509_free_0_arg0, attribute_Deprecated_func_openssl_x509_free_0_arg0_str);
665 ZVAL_COPY_VALUE(&attribute_Deprecated_func_openssl_x509_free_0->args[0].value, &attribute_Deprecated_func_openssl_x509_free_0_arg0);
666 attribute_Deprecated_func_openssl_x509_free_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
667 zval attribute_Deprecated_func_openssl_x509_free_0_arg1;
668 zend_string *attribute_Deprecated_func_openssl_x509_free_0_arg1_str = zend_string_init("as OpenSSLCertificate objects are freed automatically", strlen("as OpenSSLCertificate objects are freed automatically"), 1);
669 ZVAL_STR(&attribute_Deprecated_func_openssl_x509_free_0_arg1, attribute_Deprecated_func_openssl_x509_free_0_arg1_str);
670 ZVAL_COPY_VALUE(&attribute_Deprecated_func_openssl_x509_free_0->args[1].value, &attribute_Deprecated_func_openssl_x509_free_0_arg1);
671 attribute_Deprecated_func_openssl_x509_free_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
672
673 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs12_export_to_file", sizeof("openssl_pkcs12_export_to_file") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
674
675 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs12_export_to_file", sizeof("openssl_pkcs12_export_to_file") - 1), 3, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
676
677 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs12_export", sizeof("openssl_pkcs12_export") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
678
679 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs12_export", sizeof("openssl_pkcs12_export") - 1), 3, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
680
681 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs12_read", sizeof("openssl_pkcs12_read") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
682
683 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_csr_sign", sizeof("openssl_csr_sign") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
684
685 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_csr_new", sizeof("openssl_csr_new") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
686
687 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_export_to_file", sizeof("openssl_pkey_export_to_file") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
688
689 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_export_to_file", sizeof("openssl_pkey_export_to_file") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
690
691 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_export", sizeof("openssl_pkey_export") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
692
693 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_export", sizeof("openssl_pkey_export") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
694
695 zend_attribute *attribute_Deprecated_func_openssl_pkey_free_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_free", sizeof("openssl_pkey_free") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
696 zval attribute_Deprecated_func_openssl_pkey_free_0_arg0;
697 zend_string *attribute_Deprecated_func_openssl_pkey_free_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
698 ZVAL_STR(&attribute_Deprecated_func_openssl_pkey_free_0_arg0, attribute_Deprecated_func_openssl_pkey_free_0_arg0_str);
699 ZVAL_COPY_VALUE(&attribute_Deprecated_func_openssl_pkey_free_0->args[0].value, &attribute_Deprecated_func_openssl_pkey_free_0_arg0);
700 attribute_Deprecated_func_openssl_pkey_free_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
701 zval attribute_Deprecated_func_openssl_pkey_free_0_arg1;
702 zend_string *attribute_Deprecated_func_openssl_pkey_free_0_arg1_str = zend_string_init("as OpenSSLAsymmetricKey objects are freed automatically", strlen("as OpenSSLAsymmetricKey objects are freed automatically"), 1);
703 ZVAL_STR(&attribute_Deprecated_func_openssl_pkey_free_0_arg1, attribute_Deprecated_func_openssl_pkey_free_0_arg1_str);
704 ZVAL_COPY_VALUE(&attribute_Deprecated_func_openssl_pkey_free_0->args[1].value, &attribute_Deprecated_func_openssl_pkey_free_0_arg1);
705 attribute_Deprecated_func_openssl_pkey_free_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
706
707 zend_attribute *attribute_Deprecated_func_openssl_free_key_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_free_key", sizeof("openssl_free_key") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
708 zval attribute_Deprecated_func_openssl_free_key_0_arg0;
709 zend_string *attribute_Deprecated_func_openssl_free_key_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
710 ZVAL_STR(&attribute_Deprecated_func_openssl_free_key_0_arg0, attribute_Deprecated_func_openssl_free_key_0_arg0_str);
711 ZVAL_COPY_VALUE(&attribute_Deprecated_func_openssl_free_key_0->args[0].value, &attribute_Deprecated_func_openssl_free_key_0_arg0);
712 attribute_Deprecated_func_openssl_free_key_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
713 zval attribute_Deprecated_func_openssl_free_key_0_arg1;
714 zend_string *attribute_Deprecated_func_openssl_free_key_0_arg1_str = zend_string_init("as OpenSSLAsymmetricKey objects are freed automatically", strlen("as OpenSSLAsymmetricKey objects are freed automatically"), 1);
715 ZVAL_STR(&attribute_Deprecated_func_openssl_free_key_0_arg1, attribute_Deprecated_func_openssl_free_key_0_arg1_str);
716 ZVAL_COPY_VALUE(&attribute_Deprecated_func_openssl_free_key_0->args[1].value, &attribute_Deprecated_func_openssl_free_key_0_arg1);
717 attribute_Deprecated_func_openssl_free_key_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
718
719 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_get_private", sizeof("openssl_pkey_get_private") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
720
721 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_get_private", sizeof("openssl_pkey_get_private") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
722
723 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_get_privatekey", sizeof("openssl_get_privatekey") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
724
725 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_get_privatekey", sizeof("openssl_get_privatekey") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
726
727 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pbkdf2", sizeof("openssl_pbkdf2") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
728
729 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs7_sign", sizeof("openssl_pkcs7_sign") - 1), 3, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
730
731 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs7_decrypt", sizeof("openssl_pkcs7_decrypt") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
732
733 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs7_decrypt", sizeof("openssl_pkcs7_decrypt") - 1), 3, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
734
735 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_cms_sign", sizeof("openssl_cms_sign") - 1), 3, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
736
737 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_cms_decrypt", sizeof("openssl_cms_decrypt") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
738
739 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_cms_decrypt", sizeof("openssl_cms_decrypt") - 1), 3, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
740
741 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_private_encrypt", sizeof("openssl_private_encrypt") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
742
743 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_private_encrypt", sizeof("openssl_private_encrypt") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
744
745 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_private_decrypt", sizeof("openssl_private_decrypt") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
746
747 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_private_decrypt", sizeof("openssl_private_decrypt") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
748
749 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_public_encrypt", sizeof("openssl_public_encrypt") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
750
751 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_public_decrypt", sizeof("openssl_public_decrypt") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
752
753 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_sign", sizeof("openssl_sign") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
754
755 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_seal", sizeof("openssl_seal") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
756
757 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_open", sizeof("openssl_open") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
758
759 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_open", sizeof("openssl_open") - 1), 3, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
760
761 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_encrypt", sizeof("openssl_encrypt") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
762
763 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_encrypt", sizeof("openssl_encrypt") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
764
765 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_decrypt", sizeof("openssl_decrypt") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
766
767 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_dh_compute_key", sizeof("openssl_dh_compute_key") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
768
769 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_derive", sizeof("openssl_pkey_derive") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
770
771 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_spki_new", sizeof("openssl_spki_new") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
772#if defined(HAVE_OPENSSL_ARGON2)
773
774 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_password_hash", sizeof("openssl_password_hash") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
775
776 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_password_verify", sizeof("openssl_password_verify") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
777#endif
778}
779
780static zend_class_entry *register_class_OpenSSLCertificate(void)
781{
782 zend_class_entry ce, *class_entry;
783
784 INIT_CLASS_ENTRY(ce, "OpenSSLCertificate", NULL);
786
787 return class_entry;
788}
789
790static zend_class_entry *register_class_OpenSSLCertificateSigningRequest(void)
791{
792 zend_class_entry ce, *class_entry;
793
794 INIT_CLASS_ENTRY(ce, "OpenSSLCertificateSigningRequest", NULL);
796
797 return class_entry;
798}
799
800static zend_class_entry *register_class_OpenSSLAsymmetricKey(void)
801{
802 zend_class_entry ce, *class_entry;
803
804 INIT_CLASS_ENTRY(ce, "OpenSSLAsymmetricKey", NULL);
806
807 return class_entry;
808}
#define NULL
Definition gdcache.h:45
hash(string $algo, string $data, bool $binary=false, array $options=[])
Definition hash.stub.php:12
@ OPENSSL_KEYTYPE_DSA
Definition openssl.c:120
@ OPENSSL_KEYTYPE_RSA
Definition openssl.c:119
@ OPENSSL_KEYTYPE_DH
Definition openssl.c:121
#define OPENSSL_ALGO_MD5
Definition openssl.c:80
#define OPENSSL_ALGO_RMD160
Definition openssl.c:95
#define OPENSSL_ALGO_SHA256
Definition openssl.c:91
#define OPENSSL_ALGO_MD4
Definition openssl.c:82
#define OPENSSL_ALGO_DSS1
Definition openssl.c:88
#define OPENSSL_ALGO_SHA384
Definition openssl.c:92
@ PHP_OPENSSL_CIPHER_RC2_40
Definition openssl.c:135
@ PHP_OPENSSL_CIPHER_AES_128_CBC
Definition openssl.c:140
@ PHP_OPENSSL_CIPHER_DES
Definition openssl.c:138
@ PHP_OPENSSL_CIPHER_AES_192_CBC
Definition openssl.c:141
@ PHP_OPENSSL_CIPHER_AES_256_CBC
Definition openssl.c:142
@ PHP_OPENSSL_CIPHER_RC2_128
Definition openssl.c:136
@ PHP_OPENSSL_CIPHER_3DES
Definition openssl.c:139
@ PHP_OPENSSL_CIPHER_RC2_64
Definition openssl.c:137
#define OPENSSL_ALGO_SHA224
Definition openssl.c:90
#define OPENSSL_ALGO_MD2
Definition openssl.c:85
#define OPENSSL_ALGO_SHA1
Definition openssl.c:79
#define OPENSSL_ALGO_SHA512
Definition openssl.c:93
@ ENCODING_SMIME
Definition openssl.c:153
@ ENCODING_DER
Definition openssl.c:152
@ ENCODING_PEM
Definition openssl.c:154
const X509_PURPOSE_SSL_SERVER
const OPENSSL_DONT_ZERO_PAD_KEY
openssl_sign(string $data, &$signature, #[\SensitiveParameter] $private_key, string|int $algorithm=OPENSSL_ALGO_SHA1)
openssl_pkey_free(OpenSSLAsymmetricKey $key)
openssl_x509_export(OpenSSLCertificate|string $certificate, &$output, bool $no_text=true)
const PKCS7_NOVERIFY
const PKCS7_NOCHAIN
openssl_csr_export_to_file(OpenSSLCertificateSigningRequest|string $csr, string $output_filename, bool $no_text=true)
const X509_PURPOSE_OCSP_HELPER
openssl_pkcs12_read(string $pkcs12, &$certificates, #[\SensitiveParameter] string $passphrase)
const PKCS7_NOSIGS
openssl_dh_compute_key(string $public_key, #[\SensitiveParameter] OpenSSLAsymmetricKey $private_key)
const X509_PURPOSE_ANY
const OPENSSL_ZERO_PADDING
const OPENSSL_DEFAULT_STREAM_CIPHERS
openssl_x509_check_private_key(OpenSSLCertificate|string $certificate, #[\SensitiveParameter] $private_key)
openssl_x509_free(OpenSSLCertificate $certificate)
openssl_get_curve_names()
openssl_seal(#[\SensitiveParameter] string $data, &$sealed_data, &$encrypted_keys, array $public_key, string $cipher_algo, &$iv=null)
openssl_pkcs7_decrypt(string $input_filename, string $output_filename, #[\SensitiveParameter] $certificate, #[\SensitiveParameter] $private_key=null)
openssl_x509_parse(OpenSSLCertificate|string $certificate, bool $short_names=true)
openssl_pkey_derive($public_key, #[\SensitiveParameter] $private_key, int $key_length=0)
openssl_spki_new(#[\SensitiveParameter] OpenSSLAsymmetricKey $private_key, string $challenge, int $digest_algo=OPENSSL_ALGO_MD5)
openssl_pkcs12_export_to_file(OpenSSLCertificate|string $certificate, string $output_filename, #[\SensitiveParameter] $private_key, #[\SensitiveParameter] string $passphrase, array $options=[])
openssl_pkey_get_details(OpenSSLAsymmetricKey $key)
openssl_cms_read(string $input_filename, &$certificates)
const OPENSSL_VERSION_NUMBER
openssl_pkey_export_to_file(#[\SensitiveParameter] $key, string $output_filename, #[\SensitiveParameter] ?string $passphrase=null, ?array $options=null)
openssl_pkcs12_export(OpenSSLCertificate|string $certificate, &$output, #[\SensitiveParameter] $private_key, #[\SensitiveParameter] string $passphrase, array $options=[])
openssl_error_string()
const X509_PURPOSE_NS_SSL_SERVER
openssl_csr_export(OpenSSLCertificateSigningRequest|string $csr, &$output, bool $no_text=true)
openssl_csr_get_public_key(OpenSSLCertificateSigningRequest|string $csr, bool $short_names=true)
const PKCS7_NOCERTS
openssl_spki_export(string $spki)
openssl_digest(string $data, string $digest_algo, bool $binary=false)
const OPENSSL_KEYTYPE_EC
const PKCS7_DETACHED
const OPENSSL_RAW_DATA
openssl_x509_verify(OpenSSLCertificate|string $certificate, $public_key)
openssl_pkcs7_encrypt(string $input_filename, string $output_filename, $certificate, ?array $headers, int $flags=0, int $cipher_algo=OPENSSL_CIPHER_AES_128_CBC)
openssl_get_cert_locations()
openssl_x509_checkpurpose(OpenSSLCertificate|string $certificate, int $purpose, array $ca_info=[], ?string $untrusted_certificates_file=null)
openssl_pkey_get_public($public_key)
openssl_cms_sign(string $input_filename, string $output_filename, OpenSSLCertificate|string $certificate, #[\SensitiveParameter] $private_key, ?array $headers, int $flags=0, int $encoding=OPENSSL_ENCODING_SMIME, ?string $untrusted_certificates_filename=null)
openssl_password_verify(string $algo, #[\SensitiveParameter] string $password, string $hash)
openssl_get_md_methods(bool $aliases=false)
const PKCS7_NOATTR
openssl_private_encrypt(#[\SensitiveParameter] string $data, &$encrypted_data, #[\SensitiveParameter] $private_key, int $padding=OPENSSL_PKCS1_PADDING)
const X509_PURPOSE_TIMESTAMP_SIGN
const OPENSSL_VERSION_TEXT
openssl_x509_fingerprint(OpenSSLCertificate|string $certificate, string $digest_algo="sha1", bool $binary=false)
openssl_spki_verify(string $spki)
openssl_csr_get_subject(OpenSSLCertificateSigningRequest|string $csr, bool $short_names=true)
openssl_password_hash(string $algo, #[\SensitiveParameter] string $password, array $options=[])
openssl_random_pseudo_bytes(int $length, &$strong_result=null)
openssl_public_encrypt(#[\SensitiveParameter] string $data, &$encrypted_data, $public_key, int $padding=OPENSSL_PKCS1_PADDING)
openssl_pbkdf2(#[\SensitiveParameter] string $password, string $salt, int $key_length, int $iterations, string $digest_algo="sha1")
const OPENSSL_KEYTYPE_X448
openssl_spki_export_challenge(string $spki)
openssl_verify(string $data, string $signature, $public_key, string|int $algorithm=OPENSSL_ALGO_SHA1)
openssl_cipher_key_length(string $cipher_algo)
openssl_private_decrypt(string $data, #[\SensitiveParameter] &$decrypted_data, #[\SensitiveParameter] $private_key, int $padding=OPENSSL_PKCS1_PADDING)
openssl_encrypt(#[\SensitiveParameter] string $data, string $cipher_algo, #[\SensitiveParameter] string $passphrase, int $options=0, string $iv="", &$tag=null, string $aad="", int $tag_length=16)
openssl_decrypt(string $data, string $cipher_algo, #[\SensitiveParameter] string $passphrase, int $options=0, string $iv="", ?string $tag=null, string $aad="")
const OPENSSL_KEYTYPE_ED448
openssl_open(string $data, #[\SensitiveParameter] &$output, string $encrypted_key, #[\SensitiveParameter] $private_key, string $cipher_algo, ?string $iv=null)
openssl_csr_sign(OpenSSLCertificateSigningRequest|string $csr, OpenSSLCertificate|string|null $ca_certificate, #[\SensitiveParameter] $private_key, int $days, ?array $options=null, int $serial=0, ?string $serial_hex=null)
openssl_cms_decrypt(string $input_filename, string $output_filename, #[\SensitiveParameter] $certificate, #[\SensitiveParameter] $private_key=null, int $encoding=OPENSSL_ENCODING_SMIME)
const PKCS7_TEXT
openssl_cms_verify(string $input_filename, int $flags=0, ?string $certificates=null, array $ca_info=[], ?string $untrusted_certificates_filename=null, ?string $content=null, ?string $pk7=null, ?string $sigfile=null, int $encoding=OPENSSL_ENCODING_SMIME)
openssl_public_decrypt(string $data, #[\SensitiveParameter] &$decrypted_data, $public_key, int $padding=OPENSSL_PKCS1_PADDING)
openssl_cipher_iv_length(string $cipher_algo)
const OPENSSL_KEYTYPE_ED25519
openssl_pkey_new(?array $options=null)
openssl_pkey_get_private(#[\SensitiveParameter] $private_key, #[\SensitiveParameter] ?string $passphrase=null)
const X509_PURPOSE_SSL_CLIENT
openssl_get_cipher_methods(bool $aliases=false)
openssl_x509_export_to_file(OpenSSLCertificate|string $certificate, string $output_filename, bool $no_text=true)
const OPENSSL_KEYTYPE_X25519
openssl_pkey_export(#[\SensitiveParameter] $key, &$output, #[\SensitiveParameter] ?string $passphrase=null, ?array $options=null)
const X509_PURPOSE_SMIME_ENCRYPT
const PKCS7_NOOLDMIMETYPE
const PKCS7_BINARY
openssl_x509_read(OpenSSLCertificate|string $certificate)
openssl_csr_new(array $distinguished_names, #[\SensitiveParameter] &$private_key, ?array $options=null, ?array $extra_attributes=null)
const X509_PURPOSE_SMIME_SIGN
const X509_PURPOSE_CRL_SIGN
openssl_cms_encrypt(string $input_filename, string $output_filename, $certificate, ?array $headers, int $flags=0, int $encoding=OPENSSL_ENCODING_SMIME, int $cipher_algo=OPENSSL_CIPHER_AES_128_CBC)
openssl_pkcs7_verify(string $input_filename, int $flags, ?string $signers_certificates_filename=null, array $ca_info=[], ?string $untrusted_certificates_filename=null, ?string $content=null, ?string $output_filename=null)
const PKCS7_NOINTERN
openssl_pkcs7_sign(string $input_filename, string $output_filename, OpenSSLCertificate|string $certificate, #[\SensitiveParameter] $private_key, ?array $headers, int $flags=PKCS7_DETACHED, ?string $untrusted_certificates_filename=null)
openssl_pkcs7_read(string $data, &$certificates)
#define arginfo_openssl_free_key
#define arginfo_openssl_get_publickey
#define arginfo_openssl_spki_export_challenge
#define arginfo_openssl_cipher_key_length
#define arginfo_openssl_get_privatekey
#define arginfo_openssl_get_cipher_methods
PHP_JSON_API size_t int options
Definition php_json.h:102
unsigned char key[REFLECTION_KEY_LEN]
xmlCharEncodingHandlerPtr encoding
Definition php_soap.h:170
zend_constant * data
zend_attribute_arg args[1]
ZEND_API zend_class_entry * zend_register_internal_class_with_flags(zend_class_entry *class_entry, zend_class_entry *parent_ce, uint32_t ce_flags)
Definition zend_API.c:3512
#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(name, return_reference, required_num_args, class_name, type)
Definition zend_API.h:195
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(name, return_reference, required_num_args, type)
Definition zend_API.h:185
#define ZEND_FE_END
Definition zend_API.h:124
struct _zend_function_entry zend_function_entry
#define ZEND_ARG_OBJ_TYPE_MASK(pass_by_ref, name, class_name, type_mask, default_value)
Definition zend_API.h:148
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:205
#define INIT_CLASS_ENTRY(class_container, class_name, functions)
Definition zend_API.h:279
#define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags, frameless_function_infos, doc_comment)
Definition zend_API.h:80
#define ZEND_ARG_INFO(pass_by_ref, name)
Definition zend_API.h:130
#define ZEND_ARG_TYPE_MASK(pass_by_ref, name, type_mask, default_value)
Definition zend_API.h:146
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_ARG_OBJ_INFO(pass_by_ref, name, class_name, allow_null)
Definition zend_API.h:154
#define ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, type_hint, allow_null, default_value)
Definition zend_API.h:140
#define ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
Definition zend_API.h:138
#define ZEND_FE(name, arg_info)
Definition zend_API.h:86
#define ZEND_FUNCTION(name)
Definition zend_API.h:75
#define ZEND_ARG_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, default_value)
Definition zend_API.h:132
struct _zend_attribute zend_attribute
struct _zval_struct zval
strlen(string $string)
#define ZEND_ACC_NO_DYNAMIC_PROPERTIES
#define ZEND_ACC_FINAL
#define ZEND_ACC_NOT_SERIALIZABLE
#define ZEND_ACC_DEPRECATED
#define REGISTER_STRING_CONSTANT(name, str, flags)
#define CONST_PERSISTENT
#define REGISTER_LONG_CONSTANT(name, lval, flags)
#define CG(v)
struct _zend_string zend_string
struct _zend_class_entry zend_class_entry
#define ZSTR_KNOWN(idx)
#define MAY_BE_STRING
#define MAY_BE_FALSE
#define MAY_BE_BOOL
#define MAY_BE_NULL
#define MAY_BE_LONG
#define MAY_BE_ARRAY
#define ZVAL_STR(z, s)
#define IS_STRING
Definition zend_types.h:606
#define IS_ARRAY
Definition zend_types.h:607
#define IS_VOID
Definition zend_types.h:617
#define IS_LONG
Definition zend_types.h:604
#define _IS_BOOL
Definition zend_types.h:629
#define ZVAL_COPY_VALUE(z, v)