/dports/lang/ruby26/ruby-2.6.9/ext/openssl/ |
H A D | ossl_pkey_ec.c | 101 ossl_raise(eECError, NULL); in ossl_ec_new() 121 ossl_raise(eECError, NULL); in ec_key_new_from_group() 125 ossl_raise(eECError, NULL); in ec_key_new_from_group() 134 ossl_raise(eECError, NULL); in ec_key_new_from_group() 161 ossl_raise(eECError, NULL); in ossl_ec_key_s_generate() 195 ossl_raise(eECError, NULL); in ossl_ec_key_initialize() 201 ossl_raise(eECError, NULL); in ossl_ec_key_initialize() 252 ossl_raise(eECError, "EC_KEY_dup"); in ossl_ec_key_initialize_copy() 1275 ossl_raise(eEC_GROUP, NULL); in ossl_ec_group_to_text() 1604 ossl_raise(eEC_POINT, NULL); in ossl_ec_point_mul() [all …]
|
H A D | ossl_x509req.c | 71 ossl_raise(eX509ReqError, NULL); in ossl_x509req_alloc() 113 ossl_raise(eX509ReqError, NULL); in ossl_x509req_copy() 129 ossl_raise(eX509ReqError, NULL); in ossl_x509req_to_pem() 133 ossl_raise(eX509ReqError, NULL); in ossl_x509req_to_pem() 149 ossl_raise(eX509ReqError, NULL); in ossl_x509req_to_der() 153 ossl_raise(eX509ReqError, NULL); in ossl_x509req_to_der() 167 ossl_raise(eX509ReqError, NULL); in ossl_x509req_to_text() 171 ossl_raise(eX509ReqError, NULL); in ossl_x509req_to_text() 190 ossl_raise(eX509ReqError, NULL); 234 ossl_raise(eX509ReqError, NULL); in ossl_x509req_get_subject() [all …]
|
H A D | ossl_bn.c | 66 ossl_raise(eBNError, NULL); in ossl_bn_new() 167 ossl_raise(eBNError, NULL); in ossl_bn_alloc() 311 ossl_raise(eBNError, NULL); in ossl_bn_to_i() 530 ossl_raise(eBNError, NULL); 534 ossl_raise(eBNError, NULL); 539 ossl_raise(eBNError, NULL); 817 ossl_raise(eBNError, NULL); 821 ossl_raise(eBNError, NULL); 864 ossl_raise(eBNError, NULL); in BIGNUM_NUM() 1032 ossl_raise(eBNError, NULL); in ossl_bn_is_prime() [all …]
|
H A D | ossl_x509cert.c | 63 ossl_raise(eX509CertError, NULL); in ossl_x509_new() 174 ossl_raise(eX509CertError, NULL); in ossl_x509_to_der() 178 ossl_raise(eX509CertError, NULL); in ossl_x509_to_der() 201 ossl_raise(eX509CertError, NULL); in ossl_x509_to_pem() 226 ossl_raise(eX509CertError, NULL); in ossl_x509_to_text() 246 ossl_raise(eX509CertError, NULL); 284 ossl_raise(eX509CertError, NULL); in ossl_x509_set_version() 336 ossl_raise(eX509CertError, NULL); in ossl_x509_get_signature_algorithm() 355 ossl_raise(eX509CertError, NULL); in ossl_x509_get_subject() 372 ossl_raise(eX509CertError, NULL); in ossl_x509_set_subject() [all …]
|
H A D | ossl_cipher.c | 17 ossl_raise(rb_eRuntimeError, NULL); \ 67 ossl_raise(rb_eArgError, in ossl_evp_get_cipherbyname() 83 ossl_raise(eCipherError, NULL); in ossl_cipher_new() 128 ossl_raise(eCipherError, NULL); in ossl_cipher_initialize() 147 ossl_raise(eCipherError, NULL); in ossl_cipher_copy() 194 ossl_raise(eCipherError, NULL); in ossl_cipher_reset() 237 ossl_raise(eCipherError, NULL); in ossl_cipher_init() 327 ossl_raise(eCipherError, NULL); in ossl_cipher_pkcs5_keyivgen() 393 ossl_raise(rb_eRangeError, in ossl_cipher_update() 405 ossl_raise(eCipherError, NULL); in ossl_cipher_update() [all …]
|
H A D | ossl_x509attr.c | 63 ossl_raise(eX509AttrError, NULL); in ossl_x509attr_new() 91 ossl_raise(eX509AttrError, NULL); in ossl_x509attr_alloc() 116 ossl_raise(eX509AttrError, NULL); in ossl_x509attr_initialize() 188 ossl_raise(eX509AttrError, NULL); in ossl_x509attr_get_oid() 220 ossl_raise(eX509AttrError, NULL); in ossl_x509attr_set_value() 231 ossl_raise(eX509AttrError, NULL); in ossl_x509attr_set_value() 255 ossl_raise(eX509AttrError, "sk_new"); in ossl_x509attr_get_value() 263 ossl_raise(eX509AttrError, NULL); in ossl_x509attr_get_value() 269 ossl_raise(eX509AttrError, NULL); in ossl_x509attr_get_value() 291 ossl_raise(eX509AttrError, NULL); in ossl_x509attr_to_der() [all …]
|
H A D | ossl_x509crl.c | 85 ossl_raise(eX509CRLError, NULL); in ossl_x509crl_alloc() 127 ossl_raise(eX509CRLError, NULL); in ossl_x509crl_copy() 158 ossl_raise(eX509CRLError, NULL); in ossl_x509crl_set_version() 173 ossl_raise(eX509CRLError, NULL); in ossl_x509crl_get_signature_algorithm() 178 ossl_raise(eX509CRLError, NULL); in ossl_x509crl_get_signature_algorithm() 202 ossl_raise(eX509CRLError, NULL); in ossl_x509crl_set_issuer() 352 ossl_raise(eX509CRLError, NULL); in ossl_x509crl_sign() 374 ossl_raise(eX509CRLError, NULL); in ossl_x509crl_verify() 386 ossl_raise(eX509CRLError, NULL); in ossl_x509crl_to_der() 390 ossl_raise(eX509CRLError, NULL); in ossl_x509crl_to_der() [all …]
|
H A D | ossl_ns_spki.c | 64 ossl_raise(eSPKIError, NULL); in ossl_spki_alloc() 93 ossl_raise(eSPKIError, NULL); in ossl_spki_initialize() 118 ossl_raise(eX509CertError, NULL); in ossl_spki_to_der() 122 ossl_raise(eX509CertError, NULL); in ossl_spki_to_der() 143 ossl_raise(eSPKIError, NULL); in ossl_spki_to_pem() 165 ossl_raise(eSPKIError, NULL); in ossl_spki_print() 169 ossl_raise(eSPKIError, NULL); in ossl_spki_print() 190 ossl_raise(eSPKIError, NULL); in ossl_spki_get_public_key() 261 ossl_raise(eSPKIError, NULL); in ossl_spki_set_challenge() 291 ossl_raise(eSPKIError, NULL); in ossl_spki_sign() [all …]
|
H A D | ossl_pkcs7.c | 155 ossl_raise(ePKCS7Error, NULL); in DupPKCS7SignerPtr() 182 ossl_raise(ePKCS7Error, NULL); in DupPKCS7RecipientPtr() 281 ossl_raise(ePKCS7Error, NULL); in ossl_pkcs7_s_sign() 334 ossl_raise(ePKCS7Error, NULL); in ossl_pkcs7_s_encrypt() 352 ossl_raise(ePKCS7Error, NULL); in ossl_pkcs7_alloc() 409 ossl_raise(ePKCS7Error, NULL); in ossl_pkcs7_copy() 464 ossl_raise(ePKCS7Error, NULL); in ossl_pkcs7_set_type() 501 ossl_raise(ePKCS7Error, NULL); in ossl_pkcs7_set_detached() 529 ossl_raise(ePKCS7Error, NULL); in ossl_pkcs7_set_cipher() 634 ossl_raise(ePKCS7Error, NULL); in ossl_pkcs7_add_certificate() [all …]
|
H A D | ossl_ocsp.c | 170 ossl_raise(eOCSPError, NULL); in ossl_ocspreq_alloc() 448 ossl_raise(eOCSPError, NULL); in ossl_ocspreq_to_der() 452 ossl_raise(eOCSPError, NULL); in ossl_ocspreq_to_der() 496 ossl_raise(eOCSPError, NULL); in ossl_ocspres_s_create() 510 ossl_raise(eOCSPError, NULL); in ossl_ocspres_alloc() 645 ossl_raise(eOCSPError, NULL); in ossl_ocspres_to_der() 649 ossl_raise(eOCSPError, NULL); in ossl_ocspres_to_der() 666 ossl_raise(eOCSPError, NULL); in ossl_ocspbres_alloc() 785 ossl_raise(eOCSPError, NULL); in add_status_convert_time() 1144 ossl_raise(eOCSPError, NULL); in ossl_ocspbres_to_der() [all …]
|
H A D | ossl_pkey.c | 102 ossl_raise(rb_eRuntimeError, "pkey is empty"); in pkey_new0() 195 ossl_raise(ePKeyError, "parameters missing"); in ossl_pkey_check_public_key() 273 ossl_raise(ePKeyError, NULL); in ossl_pkey_alloc() 330 ossl_raise(ePKeyError, "EVP_MD_CTX_new"); in ossl_pkey_sign() 333 ossl_raise(ePKeyError, "EVP_SignInit_ex"); in ossl_pkey_sign() 337 ossl_raise(ePKeyError, "EVP_SignUpdate"); in ossl_pkey_sign() 342 ossl_raise(ePKeyError, "EVP_SignFinal"); in ossl_pkey_sign() 386 ossl_raise(ePKeyError, "EVP_MD_CTX_new"); in ossl_pkey_verify() 389 ossl_raise(ePKeyError, "EVP_VerifyInit_ex"); in ossl_pkey_verify() 393 ossl_raise(ePKeyError, "EVP_VerifyUpdate"); in ossl_pkey_verify() [all …]
|
H A D | ossl_pkey_dh.c | 72 ossl_raise(eDHError, NULL); in ossl_dh_new() 171 ossl_raise(eDHError, NULL); in ossl_dh_s_generate() 238 ossl_raise(eDHError, NULL); in ossl_dh_initialize() 337 ossl_raise(eDHError, NULL); in ossl_dh_export() 341 ossl_raise(eDHError, NULL); in ossl_dh_export() 367 ossl_raise(eDHError, NULL); in ossl_dh_to_der() 371 ossl_raise(eDHError, NULL); in ossl_dh_to_der() 423 ossl_raise(eDHError, NULL); in ossl_dh_to_text() 427 ossl_raise(eDHError, NULL); in ossl_dh_to_text() 466 ossl_raise(eDHError, NULL); in ossl_dh_to_public_key() [all …]
|
H A D | ossl_pkey_dsa.c | 86 ossl_raise(eDSAError, NULL); in ossl_dsa_new() 186 ossl_raise(eDSAError, NULL); in ossl_dsa_s_generate() 261 ossl_raise(eDSAError, NULL); in ossl_dsa_initialize() 355 ossl_raise(eDSAError, NULL); in ossl_dsa_export() 396 ossl_raise(eDSAError, NULL); in ossl_dsa_to_der() 400 ossl_raise(eDSAError, NULL); in ossl_dsa_to_der() 453 ossl_raise(eDSAError, NULL); in ossl_dsa_to_text() 457 ossl_raise(eDSAError, NULL); in ossl_dsa_to_text() 497 ossl_raise(eDSAError, NULL); in ossl_dsa_to_public_key() 540 ossl_raise(eDSAError, NULL); in ossl_dsa_sign() [all …]
|
H A D | ossl_pkey_rsa.c | 88 ossl_raise(eRSAError, NULL); in ossl_rsa_new() 194 ossl_raise(eRSAError, NULL); in ossl_rsa_s_generate() 268 ossl_raise(eRSAError, NULL); in ossl_rsa_initialize() 357 ossl_raise(eRSAError, NULL); in ossl_rsa_export() 363 ossl_raise(eRSAError, NULL); in ossl_rsa_export() 368 ossl_raise(eRSAError, NULL); in ossl_rsa_export() 397 ossl_raise(eRSAError, NULL); in ossl_rsa_to_der() 401 ossl_raise(eRSAError, NULL); in ossl_rsa_to_der() 784 ossl_raise(eRSAError, NULL); in ossl_rsa_to_text() 788 ossl_raise(eRSAError, NULL); in ossl_rsa_to_text() [all …]
|
H A D | ossl_digest.c | 15 ossl_raise(rb_eRuntimeError, "Digest CTX wasn't initialized!"); \ 60 ossl_raise(rb_eRuntimeError, "Unsupported digest algorithm (%"PRIsVALUE").", obj); in ossl_evp_get_digestbyname() 81 ossl_raise(eDigestError, "EVP_MD_CTX_new"); in ossl_digest_new() 85 ossl_raise(eDigestError, "Digest initialization failed"); in ossl_digest_new() 133 ossl_raise(eDigestError, "EVP_MD_CTX_new"); in ossl_digest_initialize() 137 ossl_raise(eDigestError, "Digest initialization failed"); in ossl_digest_initialize() 155 ossl_raise(eDigestError, "EVP_MD_CTX_new"); in ossl_digest_copy() 160 ossl_raise(eDigestError, NULL); in ossl_digest_copy() 180 ossl_raise(eDigestError, "Digest initialization failed."); in ossl_digest_reset() 210 ossl_raise(eDigestError, "EVP_DigestUpdate"); in ossl_digest_update() [all …]
|
H A D | ossl_x509revoked.c | 16 ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \ 23 ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \ 63 ossl_raise(eX509RevError, NULL); in ossl_x509revoked_new() 77 ossl_raise(eX509RevError, NULL); in DupX509RevokedPtr() 94 ossl_raise(eX509RevError, NULL); in ossl_x509revoked_alloc() 119 ossl_raise(eX509RevError, "X509_REVOKED_dup"); in ossl_x509revoked_initialize_copy() 147 ossl_raise(eX509RevError, "X509_REVOKED_set_serialNumber"); in ossl_x509revoked_set_serial() 232 ossl_raise(eX509RevError, NULL); in ossl_x509revoked_set_extensions() 246 ossl_raise(eX509RevError, NULL); in ossl_x509revoked_add_extension() 263 ossl_raise(eX509RevError, "i2d_X509_REVOKED"); in ossl_x509revoked_to_der() [all …]
|
H A D | ossl_asn1.c | 116 ossl_raise(eOSSLError, NULL); in asn1integer_to_num() 134 ossl_raise(eOSSLError, NULL); in num_to_asn1integer() 210 ossl_raise(eASN1Error, NULL); in obj_to_asn1bstr() 225 ossl_raise(eASN1Error, NULL); in obj_to_asn1str() 239 ossl_raise(eASN1Error, NULL); in obj_to_asn1null() 267 ossl_raise(eASN1Error, NULL); in obj_to_asn1utime() 282 ossl_raise(eASN1Error, NULL); in obj_to_asn1gtime() 295 ossl_raise(eASN1Error, NULL); in obj_to_asn1derstr() 327 ossl_raise(eASN1Error, NULL); in decode_int() 912 ossl_raise(eASN1Error, in ossl_asn1_decode0() [all …]
|
H A D | ossl_x509ext.c | 16 ossl_raise(rb_eRuntimeError, "EXT wasn't initialized!"); \ 77 ossl_raise(eX509ExtError, NULL); in ossl_x509ext_new() 253 ossl_raise(eX509ExtError, NULL); in ossl_x509ext_alloc() 287 ossl_raise(eX509ExtError, NULL); in ossl_x509ext_initialize() 308 ossl_raise(eX509ExtError, "X509_EXTENSION_dup"); in ossl_x509ext_initialize_copy() 325 ossl_raise(eX509ExtError, "OBJ_txt2obj"); in ossl_x509ext_set_oid() 348 ossl_raise(eX509ExtError, "ASN1_OCTET_STRING_set"); in ossl_x509ext_set_value() 380 ossl_raise(eX509ExtError, NULL); in ossl_x509ext_get_oid() 397 ossl_raise(eX509ExtError, NULL); in ossl_x509ext_get_value() 424 ossl_raise(eX509ExtError, NULL); in ossl_x509ext_to_der() [all …]
|
H A D | ossl_kdf.c | 65 ossl_raise(eKDF, "PKCS5_PBKDF2_HMAC"); in kdf_pbkdf2_hmac() 138 ossl_raise(eKDF, "EVP_PBE_scrypt"); in kdf_scrypt() 200 ossl_raise(eKDF, "EVP_PKEY_CTX_new_id"); in kdf_hkdf() 203 ossl_raise(eKDF, "EVP_PKEY_derive_init"); in kdf_hkdf() 207 ossl_raise(eKDF, "EVP_PKEY_CTX_set_hkdf_md"); in kdf_hkdf() 212 ossl_raise(eKDF, "EVP_PKEY_CTX_set_hkdf_salt"); in kdf_hkdf() 217 ossl_raise(eKDF, "EVP_PKEY_CTX_set_hkdf_key"); in kdf_hkdf() 222 ossl_raise(eKDF, "EVP_PKEY_CTX_set_hkdf_info"); in kdf_hkdf() 226 ossl_raise(eKDF, "EVP_PKEY_derive"); in kdf_hkdf()
|
H A D | ossl_ssl_session.c | 42 ossl_raise(eSSLSession, "SSL Session already initialized"); in ossl_ssl_session_initialize() 50 ossl_raise(eSSLSession, "no session available"); in ossl_ssl_session_initialize() 64 ossl_raise(rb_eArgError, "unknown type"); in ossl_ssl_session_initialize() 69 ossl_raise(eSSLSession, "ctx not set - internal error"); in ossl_ssl_session_initialize() 88 ossl_raise(eSSLSession, "ASN1_dup"); in ossl_ssl_session_initialize_copy() 245 ossl_raise(eSSLSession, "i2d_SSL_SESSION"); in ossl_ssl_session_to_der() 269 ossl_raise(eSSLSession, "BIO_s_mem()"); in ossl_ssl_session_to_pem() 274 ossl_raise(eSSLSession, "SSL_SESSION_print()"); in ossl_ssl_session_to_pem() 296 ossl_raise(eSSLSession, "BIO_s_mem()"); in ossl_ssl_session_to_text() 301 ossl_raise(eSSLSession, "SSL_SESSION_print()"); in ossl_ssl_session_to_text()
|
H A D | ossl_rand.c | 73 ossl_raise(eRandomError, NULL); in ossl_rand_load_file() 92 ossl_raise(eRandomError, NULL); in ossl_rand_write_file() 119 ossl_raise(eRandomError, "RAND_bytes"); in ossl_rand_bytes() 121 ossl_raise(eRandomError, "RAND_bytes is not supported"); in ossl_rand_bytes() 150 ossl_raise(eRandomError, NULL); in ossl_rand_pseudo_bytes() 170 ossl_raise(eRandomError, NULL); in ossl_rand_egd() 192 ossl_raise(eRandomError, NULL); in ossl_rand_egd_bytes()
|
H A D | ossl_pkcs12.c | 11 if(!(p12)) ossl_raise(rb_eRuntimeError, "PKCS12 wasn't initialized."); \ 17 if(!(p12)) ossl_raise(rb_eRuntimeError, "PKCS12 wasn't initialized."); \ 57 if(!(p12 = PKCS12_new())) ossl_raise(ePKCS12Error, NULL); in ossl_pkcs12_s_allocate() 74 ossl_raise(ePKCS12Error, "ASN1_dup"); in ossl_pkcs12_initialize_copy() 124 ossl_raise(rb_eArgError, "Unknown PBE algorithm %"PRIsVALUE, key_nid); in ossl_pkcs12_s_create() 128 ossl_raise(rb_eArgError, "Unknown PBE algorithm %"PRIsVALUE, cert_nid); in ossl_pkcs12_s_create() 142 if(!p12) ossl_raise(ePKCS12Error, NULL); in ossl_pkcs12_s_create() 186 ossl_raise(ePKCS12Error, "PKCS12_parse"); in ossl_pkcs12_initialize() 222 ossl_raise(ePKCS12Error, NULL); in ossl_pkcs12_to_der() 226 ossl_raise(ePKCS12Error, NULL); in ossl_pkcs12_to_der()
|
H A D | ossl_x509name.c | 68 ossl_raise(eX509NameError, NULL); in ossl_x509name_new() 96 ossl_raise(eX509NameError, NULL); in ossl_x509name_alloc() 172 ossl_raise(eX509NameError, NULL); in ossl_x509name_initialize() 191 ossl_raise(eX509NameError, "X509_NAME_dup"); in ossl_x509name_initialize_copy() 257 ossl_raise(eX509NameError, "X509_NAME_oneline"); in ossl_x509name_to_s_old() 271 ossl_raise(eX509NameError, NULL); in x509name_print() 275 ossl_raise(eX509NameError, "X509_NAME_print_ex"); in x509name_print() 357 ossl_raise(eX509NameError, NULL); in ossl_x509name_to_a() 361 ossl_raise(eX509NameError, NULL); in ossl_x509name_to_a() 478 ossl_raise(eX509NameError, NULL); in ossl_x509name_to_der() [all …]
|
H A D | ossl_engine.c | 18 ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \ 25 ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \ 56 ossl_raise(eEngineError, "OPENSSL_init_crypto"); \ 228 ossl_raise(eEngineError, NULL); in ossl_engine_s_by_id() 232 ossl_raise(eEngineError, NULL); in ossl_engine_s_by_id() 293 if(!ENGINE_finish(e)) ossl_raise(eEngineError, NULL); in ossl_engine_finish() 325 if(!ciph) ossl_raise(eEngineError, NULL); in ossl_engine_get_cipher() 357 if(!md) ossl_raise(eEngineError, NULL); in ossl_engine_get_digest() 384 if (!pkey) ossl_raise(eEngineError, NULL); in ossl_engine_load_privkey() 413 if (!pkey) ossl_raise(eEngineError, NULL); in ossl_engine_load_pubkey() [all …]
|
H A D | ossl_x509store.c | 16 ossl_raise(rb_eRuntimeError, "STORE wasn't initialized!"); \ 23 ossl_raise(rb_eRuntimeError, "STORE wasn't initialized!"); \ 161 ossl_raise(eX509StoreError, NULL); in ossl_x509store_alloc() 314 ossl_raise(eX509StoreError, NULL); in ossl_x509store_add_file() 350 ossl_raise(eX509StoreError, NULL); in ossl_x509store_add_path() 374 ossl_raise(eX509StoreError, NULL); in ossl_x509store_set_default_paths() 395 ossl_raise(eX509StoreError, NULL); in ossl_x509store_add_cert() 416 ossl_raise(eX509StoreError, NULL); in ossl_x509store_add_crl() 497 ossl_raise(eX509StoreError, NULL); in ossl_x509stctx_alloc() 540 ossl_raise(eX509StoreError, NULL); in ossl_x509stctx_initialize() [all …]
|