Net-SSLeay
view release on metacpan or search on metacpan
constants.c view on Meta::CPAN
if (!memcmp(name, "NID_pkcs9_challengePassword", 27)) {
/* ^ */
#ifdef NID_pkcs9_challengePassword
return NID_pkcs9_challengePassword;
#else
goto not_there;
#endif
}
break;
case 'y':
if (!memcmp(name, "NID_sha224WithRSAEncryption", 27)) {
/* ^ */
#ifdef NID_sha224WithRSAEncryption
return NID_sha224WithRSAEncryption;
#else
goto not_there;
#endif
}
if (!memcmp(name, "NID_sha256WithRSAEncryption", 27)) {
/* ^ */
#ifdef NID_sha256WithRSAEncryption
return NID_sha256WithRSAEncryption;
#else
goto not_there;
#endif
}
if (!memcmp(name, "NID_sha384WithRSAEncryption", 27)) {
/* ^ */
#ifdef NID_sha384WithRSAEncryption
return NID_sha384WithRSAEncryption;
#else
goto not_there;
#endif
}
if (!memcmp(name, "NID_sha512WithRSAEncryption", 27)) {
/* ^ */
#ifdef NID_sha512WithRSAEncryption
return NID_sha512WithRSAEncryption;
#else
goto not_there;
#endif
}
break;
}
break;
case 28:
/* Names all of length 28. */
/* F_SSL_USE_RSAPRIVATEKEY_ASN1 F_SSL_USE_RSAPRIVATEKEY_FILE
NID_authority_key_identifier NID_netscape_ssl_server_name
NID_pbe_WithSHA1And128BitRC4 NID_pkcs7_signedAndEnveloped
NID_private_key_usage_period OPENSSL_INIT_ADD_ALL_CIPHERS
OPENSSL_INIT_ADD_ALL_DIGESTS OP_NO_EXTENDED_MASTER_SECRET
SESS_CACHE_NO_INTERNAL_STORE SSL3_MT_ENCRYPTED_EXTENSIONS
TLSEXT_TYPE_client_cert_type TLSEXT_TYPE_ec_point_formats
TLSEXT_TYPE_encrypt_then_mac TLSEXT_TYPE_server_cert_type
TLSEXT_TYPE_supported_groups X509_CHECK_FLAG_NO_WILDCARDS
X509_V_ERR_CRL_NOT_YET_VALID X509_V_ERR_HOSTNAME_MISMATCH
X509_V_ERR_INVALID_EXTENSION X509_V_ERR_ISSUER_NAME_EMPTY
X509_V_ERR_OCSP_CERT_UNKNOWN X509_V_ERR_UNABLE_TO_GET_CRL
X509_V_ERR_UNNESTED_RESOURCE */
/* Offset 14 gives the best switch position. */
switch (name[14]) {
case 'A':
if (!memcmp(name, "NID_pbe_WithSHA1And128BitRC4", 28)) {
/* ^ */
#ifdef NID_pbe_WithSHA1And128BitRC4
return NID_pbe_WithSHA1And128BitRC4;
#else
goto not_there;
#endif
}
if (!memcmp(name, "X509_V_ERR_INVALID_EXTENSION", 28)) {
/* ^ */
#ifdef X509_V_ERR_INVALID_EXTENSION
return X509_V_ERR_INVALID_EXTENSION;
#else
goto not_there;
#endif
}
break;
case 'B':
if (!memcmp(name, "X509_V_ERR_UNABLE_TO_GET_CRL", 28)) {
/* ^ */
#ifdef X509_V_ERR_UNABLE_TO_GET_CRL
return X509_V_ERR_UNABLE_TO_GET_CRL;
#else
goto not_there;
#endif
}
break;
case 'D':
if (!memcmp(name, "OPENSSL_INIT_ADD_ALL_CIPHERS", 28)) {
/* ^ */
#ifdef OPENSSL_INIT_ADD_ALL_CIPHERS
return OPENSSL_INIT_ADD_ALL_CIPHERS;
#else
goto not_there;
#endif
}
if (!memcmp(name, "OPENSSL_INIT_ADD_ALL_DIGESTS", 28)) {
/* ^ */
#ifdef OPENSSL_INIT_ADD_ALL_DIGESTS
constants.c view on Meta::CPAN
if (!memcmp(name, "TLSEXT_TYPE_client_cert_type", 28)) {
/* ^ */
#ifdef TLSEXT_TYPE_client_cert_type
return TLSEXT_TYPE_client_cert_type;
#else
goto not_there;
#endif
}
break;
case 'k':
if (!memcmp(name, "NID_authority_key_identifier", 28)) {
/* ^ */
#ifdef NID_authority_key_identifier
return NID_authority_key_identifier;
#else
goto not_there;
#endif
}
break;
case 'p':
if (!memcmp(name, "TLSEXT_TYPE_supported_groups", 28)) {
/* ^ */
#ifdef TLSEXT_TYPE_supported_groups
return TLSEXT_TYPE_supported_groups;
#else
goto not_there;
#endif
}
break;
case 'r':
if (!memcmp(name, "TLSEXT_TYPE_server_cert_type", 28)) {
/* ^ */
#ifdef TLSEXT_TYPE_server_cert_type
return TLSEXT_TYPE_server_cert_type;
#else
goto not_there;
#endif
}
break;
case 's':
if (!memcmp(name, "NID_netscape_ssl_server_name", 28)) {
/* ^ */
#ifdef NID_netscape_ssl_server_name
return NID_netscape_ssl_server_name;
#else
goto not_there;
#endif
}
break;
case 'y':
if (!memcmp(name, "NID_private_key_usage_period", 28)) {
/* ^ */
#ifdef NID_private_key_usage_period
return NID_private_key_usage_period;
#else
goto not_there;
#endif
}
break;
}
break;
case 29:
/* Names all of length 29. */
/* AD_BAD_CERTIFICATE_HASH_VALUE NID_pkcs9_unstructuredAddress
OCSP_RESPONSE_STATUS_TRYLATER OPENSSL_INIT_ENGINE_CRYPTODEV
OPENSSL_INIT_LOAD_SSL_STRINGS OP_ALLOW_CLIENT_RENEGOTIATION
OP_MICROSOFT_BIG_SSLV3_BUFFER R_SSL_SESSION_ID_IS_DIFFERENT
SESS_CACHE_NO_INTERNAL_LOOKUP X509_V_ERR_AKID_SKID_MISMATCH
X509_V_ERR_CERT_NOT_YET_VALID X509_V_ERR_EXCLUDED_VIOLATION
X509_V_ERR_NO_EXPLICIT_POLICY X509_V_ERR_OCSP_VERIFY_FAILED
X509_V_ERR_OCSP_VERIFY_NEEDED X509_V_ERR_SUBJECT_NAME_EMPTY
X509_V_FLAG_ALLOW_PROXY_CERTS */
/* Offset 16 gives the best switch position. */
switch (name[16]) {
case 'A':
if (!memcmp(name, "OCSP_RESPONSE_STATUS_TRYLATER", 29)) {
/* ^ */
#ifdef OCSP_RESPONSE_STATUS_TRYLATER
return OCSP_RESPONSE_STATUS_TRYLATER;
#else
goto not_there;
#endif
}
break;
case 'C':
if (!memcmp(name, "X509_V_ERR_SUBJECT_NAME_EMPTY", 29)) {
/* ^ */
#ifdef X509_V_ERR_SUBJECT_NAME_EMPTY
return X509_V_ERR_SUBJECT_NAME_EMPTY;
#else
goto not_there;
#endif
}
break;
case 'D':
if (!memcmp(name, "OPENSSL_INIT_LOAD_SSL_STRINGS", 29)) {
/* ^ */
#ifdef OPENSSL_INIT_LOAD_SSL_STRINGS
return OPENSSL_INIT_LOAD_SSL_STRINGS;
#else
goto not_there;
#endif
}
if (!memcmp(name, "X509_V_ERR_EXCLUDED_VIOLATION", 29)) {
/* ^ */
#ifdef X509_V_ERR_EXCLUDED_VIOLATION
( run in 1.883 second using v1.01-cache-2.11-cpan-39bf76dae61 )