Latest update.
This commit is contained in:
@@ -200,6 +200,7 @@ extern "C" {
|
||||
*/
|
||||
# define BIO_FLAGS_MEM_RDONLY 0x200
|
||||
# define BIO_FLAGS_NONCLEAR_RST 0x400
|
||||
# define BIO_FLAGS_IN_EOF 0x800
|
||||
|
||||
typedef union bio_addr_st BIO_ADDR;
|
||||
typedef struct bio_addrinfo_st BIO_ADDRINFO;
|
||||
@@ -660,6 +661,9 @@ int BIO_dgram_sctp_msg_waiting(BIO *b);
|
||||
# ifndef OPENSSL_NO_SOCK
|
||||
int BIO_sock_should_retry(int i);
|
||||
int BIO_sock_non_fatal_error(int error);
|
||||
int BIO_socket_wait(int fd, int for_read, time_t max_time);
|
||||
int BIO_wait(BIO *bio, time_t max_time);
|
||||
int BIO_connect_retry(BIO *bio, int timeout);
|
||||
# endif
|
||||
|
||||
int BIO_fd_should_retry(int i);
|
||||
|
||||
@@ -97,6 +97,7 @@ int ERR_load_BIO_strings(void);
|
||||
# define BIO_R_BAD_FOPEN_MODE 101
|
||||
# define BIO_R_BROKEN_PIPE 124
|
||||
# define BIO_R_CONNECT_ERROR 103
|
||||
# define BIO_R_CONNECT_TIMEOUT 147
|
||||
# define BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET 107
|
||||
# define BIO_R_GETSOCKNAME_ERROR 132
|
||||
# define BIO_R_GETSOCKNAME_TRUNCATED_ADDRESS 133
|
||||
@@ -114,6 +115,8 @@ int ERR_load_BIO_strings(void);
|
||||
# define BIO_R_NO_PORT_DEFINED 113
|
||||
# define BIO_R_NO_SUCH_FILE 128
|
||||
# define BIO_R_NULL_PARAMETER 115
|
||||
# define BIO_R_TRANSFER_ERROR 104
|
||||
# define BIO_R_TRANSFER_TIMEOUT 105
|
||||
# define BIO_R_UNABLE_TO_BIND_SOCKET 117
|
||||
# define BIO_R_UNABLE_TO_CREATE_SOCKET 118
|
||||
# define BIO_R_UNABLE_TO_KEEPALIVE 137
|
||||
|
||||
+11
-9
@@ -527,6 +527,7 @@ int BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range,
|
||||
const BIGNUM *priv, const unsigned char *message,
|
||||
size_t message_len, BN_CTX *ctx);
|
||||
|
||||
# ifndef OPENSSL_NO_DH
|
||||
/* Primes from RFC 2409 */
|
||||
BIGNUM *BN_get_rfc2409_prime_768(BIGNUM *bn);
|
||||
BIGNUM *BN_get_rfc2409_prime_1024(BIGNUM *bn);
|
||||
@@ -539,15 +540,16 @@ BIGNUM *BN_get_rfc3526_prime_4096(BIGNUM *bn);
|
||||
BIGNUM *BN_get_rfc3526_prime_6144(BIGNUM *bn);
|
||||
BIGNUM *BN_get_rfc3526_prime_8192(BIGNUM *bn);
|
||||
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# define get_rfc2409_prime_768 BN_get_rfc2409_prime_768
|
||||
# define get_rfc2409_prime_1024 BN_get_rfc2409_prime_1024
|
||||
# define get_rfc3526_prime_1536 BN_get_rfc3526_prime_1536
|
||||
# define get_rfc3526_prime_2048 BN_get_rfc3526_prime_2048
|
||||
# define get_rfc3526_prime_3072 BN_get_rfc3526_prime_3072
|
||||
# define get_rfc3526_prime_4096 BN_get_rfc3526_prime_4096
|
||||
# define get_rfc3526_prime_6144 BN_get_rfc3526_prime_6144
|
||||
# define get_rfc3526_prime_8192 BN_get_rfc3526_prime_8192
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# define get_rfc2409_prime_768 BN_get_rfc2409_prime_768
|
||||
# define get_rfc2409_prime_1024 BN_get_rfc2409_prime_1024
|
||||
# define get_rfc3526_prime_1536 BN_get_rfc3526_prime_1536
|
||||
# define get_rfc3526_prime_2048 BN_get_rfc3526_prime_2048
|
||||
# define get_rfc3526_prime_3072 BN_get_rfc3526_prime_3072
|
||||
# define get_rfc3526_prime_4096 BN_get_rfc3526_prime_4096
|
||||
# define get_rfc3526_prime_6144 BN_get_rfc3526_prime_6144
|
||||
# define get_rfc3526_prime_8192 BN_get_rfc3526_prime_8192
|
||||
# endif
|
||||
# endif
|
||||
|
||||
int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom);
|
||||
|
||||
+18
-15
@@ -18,30 +18,33 @@
|
||||
|
||||
# ifndef OPENSSL_NO_CMAC
|
||||
|
||||
#ifdef __cplusplus
|
||||
# ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
# endif
|
||||
|
||||
# include <openssl/evp.h>
|
||||
# include <openssl/evp.h>
|
||||
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
/* Opaque */
|
||||
typedef struct CMAC_CTX_st CMAC_CTX;
|
||||
# endif
|
||||
|
||||
CMAC_CTX *CMAC_CTX_new(void);
|
||||
void CMAC_CTX_cleanup(CMAC_CTX *ctx);
|
||||
void CMAC_CTX_free(CMAC_CTX *ctx);
|
||||
EVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx);
|
||||
int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in);
|
||||
DEPRECATEDIN_3_0(CMAC_CTX *CMAC_CTX_new(void))
|
||||
DEPRECATEDIN_3_0(void CMAC_CTX_cleanup(CMAC_CTX *ctx))
|
||||
DEPRECATEDIN_3_0(void CMAC_CTX_free(CMAC_CTX *ctx))
|
||||
DEPRECATEDIN_3_0(EVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx))
|
||||
DEPRECATEDIN_3_0(int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in))
|
||||
|
||||
int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen,
|
||||
const EVP_CIPHER *cipher, ENGINE *impl);
|
||||
int CMAC_Update(CMAC_CTX *ctx, const void *data, size_t dlen);
|
||||
int CMAC_Final(CMAC_CTX *ctx, unsigned char *out, size_t *poutlen);
|
||||
int CMAC_resume(CMAC_CTX *ctx);
|
||||
DEPRECATEDIN_3_0(int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen,
|
||||
const EVP_CIPHER *cipher, ENGINE *impl))
|
||||
DEPRECATEDIN_3_0(int CMAC_Update(CMAC_CTX *ctx, const void *data, size_t dlen))
|
||||
DEPRECATEDIN_3_0(int CMAC_Final(CMAC_CTX *ctx, unsigned char *out,
|
||||
size_t *poutlen))
|
||||
DEPRECATEDIN_3_0(int CMAC_resume(CMAC_CTX *ctx))
|
||||
|
||||
#ifdef __cplusplus
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
# endif
|
||||
|
||||
# endif
|
||||
#endif
|
||||
@@ -18,6 +18,7 @@
|
||||
# include <openssl/crmf.h>
|
||||
# include <openssl/cmperr.h>
|
||||
# include <openssl/cmp_util.h>
|
||||
# include <openssl/http.h>
|
||||
|
||||
/* explicit #includes not strictly needed since implied by the above: */
|
||||
# include <openssl/types.h>
|
||||
@@ -274,14 +275,11 @@ int OSSL_CMP_CTX_set_serverPort(OSSL_CMP_CTX *ctx, int port);
|
||||
int OSSL_CMP_CTX_set1_proxyName(OSSL_CMP_CTX *ctx, const char *name);
|
||||
int OSSL_CMP_CTX_set_proxyPort(OSSL_CMP_CTX *ctx, int port);
|
||||
# define OSSL_CMP_DEFAULT_PORT 80
|
||||
typedef BIO *(*OSSL_cmp_http_cb_t) (OSSL_CMP_CTX *ctx, BIO *hbio,
|
||||
unsigned long detail);
|
||||
int OSSL_CMP_CTX_set_http_cb(OSSL_CMP_CTX *ctx, OSSL_cmp_http_cb_t cb);
|
||||
int OSSL_CMP_CTX_set_http_cb(OSSL_CMP_CTX *ctx, OSSL_HTTP_bio_cb_t cb);
|
||||
int OSSL_CMP_CTX_set_http_cb_arg(OSSL_CMP_CTX *ctx, void *arg);
|
||||
void *OSSL_CMP_CTX_get_http_cb_arg(const OSSL_CMP_CTX *ctx);
|
||||
typedef int (*OSSL_cmp_transfer_cb_t) (OSSL_CMP_CTX *ctx,
|
||||
const OSSL_CMP_MSG *req,
|
||||
OSSL_CMP_MSG **res);
|
||||
typedef OSSL_CMP_MSG *(*OSSL_cmp_transfer_cb_t) (OSSL_CMP_CTX *ctx,
|
||||
const OSSL_CMP_MSG *req);
|
||||
int OSSL_CMP_CTX_set_transfer_cb(OSSL_CMP_CTX *ctx, OSSL_cmp_transfer_cb_t cb);
|
||||
int OSSL_CMP_CTX_set_transfer_cb_arg(OSSL_CMP_CTX *ctx, void *arg);
|
||||
void *OSSL_CMP_CTX_get_transfer_cb_arg(const OSSL_CMP_CTX *ctx);
|
||||
|
||||
@@ -63,6 +63,7 @@ int ERR_load_CMP_strings(void);
|
||||
# define CMP_R_NO_STDIO 194
|
||||
# define CMP_R_NULL_ARGUMENT 103
|
||||
# define CMP_R_PKISTATUSINFO_NOT_FOUND 132
|
||||
# define CMP_R_POTENTIALLY_INVALID_CERTIFICATE 139
|
||||
# define CMP_R_UNEXPECTED_PKIBODY 133
|
||||
# define CMP_R_UNKNOWN_ALGORITHM_ID 134
|
||||
# define CMP_R_UNKNOWN_CERT_TYPE 135
|
||||
|
||||
@@ -87,7 +87,16 @@ extern "C" {
|
||||
#define OSSL_DIGEST_PARAM_FLAGS "flags" /* ulong */
|
||||
|
||||
/* Known DIGEST names (not a complete list) */
|
||||
#define OSSL_DIGEST_NAME_MD5 "MD5"
|
||||
#define OSSL_DIGEST_NAME_MD5 "MD5"
|
||||
#define OSSL_DIGEST_NAME_SHA1 "SHA1"
|
||||
#define OSSL_DIGEST_NAME_SHA2_224 "SHA2-224"
|
||||
#define OSSL_DIGEST_NAME_SHA2_256 "SHA2-256"
|
||||
#define OSSL_DIGEST_NAME_SHA2_384 "SHA2-384"
|
||||
#define OSSL_DIGEST_NAME_SHA2_512 "SHA2-512"
|
||||
#define OSSL_DIGEST_NAME_SHA3_224 "SHA3-224"
|
||||
#define OSSL_DIGEST_NAME_SHA3_256 "SHA3-256"
|
||||
#define OSSL_DIGEST_NAME_SHA3_384 "SHA3-384"
|
||||
#define OSSL_DIGEST_NAME_SHA3_512 "SHA3-512"
|
||||
#define OSSL_DIGEST_NAME_KECCAK_KMAC128 "KECCAK-KMAC-128"
|
||||
#define OSSL_DIGEST_NAME_KECCAK_KMAC256 "KECCAK-KMAC-256"
|
||||
|
||||
@@ -158,6 +167,10 @@ extern "C" {
|
||||
#define OSSL_PKEY_PARAM_BITS "bits" /* integer */
|
||||
#define OSSL_PKEY_PARAM_MAX_SIZE "max-size" /* integer */
|
||||
#define OSSL_PKEY_PARAM_SECURITY_BITS "security-bits" /* integer */
|
||||
#define OSSL_PKEY_PARAM_DIGEST OSSL_ALG_PARAM_DIGEST
|
||||
#define OSSL_PKEY_PARAM_PROPERTIES OSSL_ALG_PARAM_PROPERTIES
|
||||
#define OSSL_PKEY_PARAM_DEFAULT_DIGEST "default-digest" /* utf8 string */
|
||||
#define OSSL_PKEY_PARAM_MANDATORY_DIGEST "mandatory-digest" /* utf8 string */
|
||||
|
||||
/* Diffie-Hellman/DSA Parameters */
|
||||
#define OSSL_PKEY_PARAM_FFC_P "p"
|
||||
@@ -198,8 +211,9 @@ extern "C" {
|
||||
#define OSSL_EXCHANGE_PARAM_PAD "pad" /* uint */
|
||||
|
||||
/* Signature parameters */
|
||||
#define OSSL_SIGNATURE_PARAM_DIGEST OSSL_ALG_PARAM_DIGEST
|
||||
#define OSSL_SIGNATURE_PARAM_DIGEST_SIZE "digest-size"
|
||||
#define OSSL_SIGNATURE_PARAM_ALGORITHM_ID "algorithm-id"
|
||||
#define OSSL_SIGNATURE_PARAM_DIGEST OSSL_PKEY_PARAM_DIGEST
|
||||
#define OSSL_SIGNATURE_PARAM_PROPERTIES OSSL_PKEY_PARAM_PROPERTIES
|
||||
|
||||
/* Asym cipher parameters */
|
||||
#define OSSL_ASYM_CIPHER_PARAM_PAD_MODE "pad-mode"
|
||||
|
||||
@@ -333,100 +333,94 @@ OSSL_CORE_MAKE_FUNC(int, OP_kdf_set_ctx_params,
|
||||
/*-
|
||||
* Key management
|
||||
*
|
||||
* Key domain parameter references can be created in several manners:
|
||||
* - by importing the domain parameter material via an OSSL_PARAM array.
|
||||
* - by generating key domain parameters, given input via an OSSL_PARAM
|
||||
* array.
|
||||
* The Key Management takes care of provider side key objects, and includes
|
||||
* all current functionality to create them, destroy them, set parameters
|
||||
* and key material, etc, essentially everything that manipulates the keys
|
||||
* themselves and their parameters.
|
||||
*
|
||||
* Key references can be created in several manners:
|
||||
* - by importing the key material via an OSSL_PARAM array.
|
||||
* - by generating a key, given optional domain parameters and
|
||||
* additional keygen parameters.
|
||||
* If domain parameters are given, they must have been generated using
|
||||
* the domain parameter generator functions.
|
||||
* If the domain parameters comes from a different provider, results
|
||||
* are undefined.
|
||||
* THE CALLER MUST ENSURE THAT CORRECT DOMAIN PARAMETERS ARE USED.
|
||||
* - by loading an internal key, given a binary blob that forms an identity.
|
||||
* THE CALLER MUST ENSURE THAT A CORRECT IDENTITY IS USED.
|
||||
* The key objects are commonly refered to as |keydata|, and it MUST be able
|
||||
* to contain parameters if the key has any, the public key and the private
|
||||
* key. All parts are optional, but their presence determines what can be
|
||||
* done with the key object in terms of encryption, signature, and so on.
|
||||
* The assumption from libcrypto is that the key object contains any of the
|
||||
* following data combinations:
|
||||
*
|
||||
* - parameters only
|
||||
* - public key only
|
||||
* - public key + private key
|
||||
* - parameters + public key
|
||||
* - parameters + public key + private key
|
||||
*
|
||||
* What "parameters", "public key" and "private key" means in detail is left
|
||||
* to the implementation. In the case of DH and DSA, they would typically
|
||||
* include domain parameters, while for certain variants of RSA, they would
|
||||
* typically include PSS or OAEP parameters.
|
||||
*
|
||||
* Key objects are created with OP_keymgmt_new() and destroyed with
|
||||
* Op_keymgmt_free(). Key objects can have data filled in with
|
||||
* OP_keymgmt_import().
|
||||
*
|
||||
* Three functions are made available to check what selection of data is
|
||||
* present in a key object: OP_keymgmt_has_parameters(),
|
||||
* OP_keymgmt_has_public_key(), and OP_keymgmt_has_private_key(),
|
||||
*/
|
||||
|
||||
/* Key domain parameter creation and destruction */
|
||||
# define OSSL_FUNC_KEYMGMT_IMPORTDOMPARAMS 1
|
||||
# define OSSL_FUNC_KEYMGMT_GENDOMPARAMS 2
|
||||
# define OSSL_FUNC_KEYMGMT_FREEDOMPARAMS 3
|
||||
OSSL_CORE_MAKE_FUNC(void *, OP_keymgmt_importdomparams,
|
||||
(void *provctx, const OSSL_PARAM params[]))
|
||||
OSSL_CORE_MAKE_FUNC(void *, OP_keymgmt_gendomparams,
|
||||
(void *provctx, const OSSL_PARAM params[]))
|
||||
OSSL_CORE_MAKE_FUNC(void, OP_keymgmt_freedomparams, (void *domparams))
|
||||
/* Key data subset selection - individual bits */
|
||||
# define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
|
||||
# define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
|
||||
# define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
|
||||
# define OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS 0x80
|
||||
|
||||
/* Key domain parameter export */
|
||||
# define OSSL_FUNC_KEYMGMT_EXPORTDOMPARAMS 4
|
||||
OSSL_CORE_MAKE_FUNC(int, OP_keymgmt_exportdomparams,
|
||||
(void *domparams, OSSL_CALLBACK *param_cb, void *cbarg))
|
||||
/* Key data subset selection - combinations */
|
||||
# define OSSL_KEYMGMT_SELECT_ALL_PARAMETERS \
|
||||
( OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS \
|
||||
| OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS)
|
||||
# define OSSL_KEYMGMT_SELECT_KEYPAIR \
|
||||
( OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY )
|
||||
# define OSSL_KEYMGMT_SELECT_ALL \
|
||||
( OSSL_KEYMGMT_SELECT_KEYPAIR | OSSL_KEYMGMT_SELECT_ALL_PARAMETERS )
|
||||
|
||||
/* Key domain parameter discovery */
|
||||
/*
|
||||
* TODO(v3.0) investigate if we need OP_keymgmt_exportdomparam_types.
|
||||
* 'openssl provider' may be a caller...
|
||||
*/
|
||||
# define OSSL_FUNC_KEYMGMT_IMPORTDOMPARAM_TYPES 5
|
||||
# define OSSL_FUNC_KEYMGMT_EXPORTDOMPARAM_TYPES 6
|
||||
OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, OP_keymgmt_importdomparam_types,
|
||||
(void))
|
||||
OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, OP_keymgmt_exportdomparam_types,
|
||||
(void))
|
||||
/* Basic key object creation, destruction */
|
||||
# define OSSL_FUNC_KEYMGMT_NEW 1
|
||||
# define OSSL_FUNC_KEYMGMT_FREE 9
|
||||
OSSL_CORE_MAKE_FUNC(void *, OP_keymgmt_new, (void *provctx))
|
||||
OSSL_CORE_MAKE_FUNC(void, OP_keymgmt_free, (void *keydata))
|
||||
|
||||
/* Key domain parameter information */
|
||||
#define OSSL_FUNC_KEYMGMT_GET_DOMPARAM_PARAMS 7
|
||||
#define OSSL_FUNC_KEYMGMT_GETTABLE_DOMPARAM_PARAMS 8
|
||||
OSSL_CORE_MAKE_FUNC(int, OP_keymgmt_get_domparam_params,
|
||||
(void *domparam, OSSL_PARAM params[]))
|
||||
OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, OP_keymgmt_gettable_domparam_params,
|
||||
(void))
|
||||
/* Key object information, with discovery */
|
||||
#define OSSL_FUNC_KEYMGMT_GET_PARAMS 10
|
||||
#define OSSL_FUNC_KEYMGMT_GETTABLE_PARAMS 11
|
||||
OSSL_CORE_MAKE_FUNC(int, OP_keymgmt_get_params,
|
||||
(void *keydata, OSSL_PARAM params[]))
|
||||
OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, OP_keymgmt_gettable_params, (void))
|
||||
|
||||
/* Key creation and destruction */
|
||||
# define OSSL_FUNC_KEYMGMT_IMPORTKEY 20
|
||||
# define OSSL_FUNC_KEYMGMT_GENKEY 21
|
||||
# define OSSL_FUNC_KEYMGMT_LOADKEY 22
|
||||
# define OSSL_FUNC_KEYMGMT_FREEKEY 23
|
||||
OSSL_CORE_MAKE_FUNC(void *, OP_keymgmt_importkey,
|
||||
(void *provctx, const OSSL_PARAM params[]))
|
||||
OSSL_CORE_MAKE_FUNC(void *, OP_keymgmt_genkey,
|
||||
(void *provctx,
|
||||
void *domparams, const OSSL_PARAM genkeyparams[]))
|
||||
OSSL_CORE_MAKE_FUNC(void *, OP_keymgmt_loadkey,
|
||||
(void *provctx, void *id, size_t idlen))
|
||||
OSSL_CORE_MAKE_FUNC(void, OP_keymgmt_freekey, (void *key))
|
||||
|
||||
/* Key export */
|
||||
# define OSSL_FUNC_KEYMGMT_EXPORTKEY 24
|
||||
OSSL_CORE_MAKE_FUNC(int, OP_keymgmt_exportkey,
|
||||
(void *key, OSSL_CALLBACK *param_cb, void *cbarg))
|
||||
|
||||
/* Key discovery */
|
||||
/*
|
||||
* TODO(v3.0) investigate if we need OP_keymgmt_exportkey_types.
|
||||
* 'openssl provider' may be a caller...
|
||||
*/
|
||||
# define OSSL_FUNC_KEYMGMT_IMPORTKEY_TYPES 25
|
||||
# define OSSL_FUNC_KEYMGMT_EXPORTKEY_TYPES 26
|
||||
OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, OP_keymgmt_importkey_types, (void))
|
||||
OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, OP_keymgmt_exportkey_types, (void))
|
||||
|
||||
/* Key information */
|
||||
#define OSSL_FUNC_KEYMGMT_GET_KEY_PARAMS 27
|
||||
#define OSSL_FUNC_KEYMGMT_GETTABLE_KEY_PARAMS 28
|
||||
OSSL_CORE_MAKE_FUNC(int, OP_keymgmt_get_key_params,
|
||||
(void *key, OSSL_PARAM params[]))
|
||||
OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, OP_keymgmt_gettable_key_params, (void))
|
||||
|
||||
/* Discovery of supported operations */
|
||||
# define OSSL_FUNC_KEYMGMT_QUERY_OPERATION_NAME 40
|
||||
OSSL_CORE_MAKE_FUNC(const char *,OP_keymgmt_query_operation_name,
|
||||
/* Key checks - discovery of supported operations */
|
||||
# define OSSL_FUNC_KEYMGMT_QUERY_OPERATION_NAME 20
|
||||
OSSL_CORE_MAKE_FUNC(const char *, OP_keymgmt_query_operation_name,
|
||||
(int operation_id))
|
||||
|
||||
/* Key checks - key data content checks */
|
||||
# define OSSL_FUNC_KEYMGMT_HAS 21
|
||||
OSSL_CORE_MAKE_FUNC(int, OP_keymgmt_has, (void *keydata, int selection))
|
||||
|
||||
/* Key checks - validation */
|
||||
# define OSSL_FUNC_KEYMGMT_VALIDATE 22
|
||||
OSSL_CORE_MAKE_FUNC(int, OP_keymgmt_validate, (void *keydata, int selection))
|
||||
|
||||
/* Import and export functions, with ddiscovery */
|
||||
# define OSSL_FUNC_KEYMGMT_IMPORT 40
|
||||
# define OSSL_FUNC_KEYMGMT_IMPORT_TYPES 41
|
||||
# define OSSL_FUNC_KEYMGMT_EXPORT 42
|
||||
# define OSSL_FUNC_KEYMGMT_EXPORT_TYPES 43
|
||||
OSSL_CORE_MAKE_FUNC(int, OP_keymgmt_import,
|
||||
(void *keydata, int selection, const OSSL_PARAM params[]))
|
||||
OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, OP_keymgmt_import_types,
|
||||
(int selection))
|
||||
OSSL_CORE_MAKE_FUNC(int, OP_keymgmt_export,
|
||||
(void *keydata, int selection,
|
||||
OSSL_CALLBACK *param_cb, void *cbarg))
|
||||
OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, OP_keymgmt_export_types,
|
||||
(int selection))
|
||||
|
||||
/* Key Exchange */
|
||||
|
||||
# define OSSL_FUNC_KEYEXCH_NEWCTX 1
|
||||
|
||||
+54
-50
@@ -80,44 +80,6 @@ void CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock);
|
||||
|
||||
int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock);
|
||||
|
||||
/*
|
||||
* The following can be used to detect memory leaks in the library. If
|
||||
* used, it turns on malloc checking
|
||||
*/
|
||||
# define CRYPTO_MEM_CHECK_OFF 0x0 /* Control only */
|
||||
# define CRYPTO_MEM_CHECK_ON 0x1 /* Control and mode bit */
|
||||
# define CRYPTO_MEM_CHECK_ENABLE 0x2 /* Control and mode bit */
|
||||
# define CRYPTO_MEM_CHECK_DISABLE 0x3 /* Control only */
|
||||
|
||||
struct crypto_ex_data_st {
|
||||
OPENSSL_CTX *ctx;
|
||||
STACK_OF(void) *sk;
|
||||
};
|
||||
DEFINE_STACK_OF(void)
|
||||
|
||||
/*
|
||||
* Per class, we have a STACK of function pointers.
|
||||
*/
|
||||
# define CRYPTO_EX_INDEX_SSL 0
|
||||
# define CRYPTO_EX_INDEX_SSL_CTX 1
|
||||
# define CRYPTO_EX_INDEX_SSL_SESSION 2
|
||||
# define CRYPTO_EX_INDEX_X509 3
|
||||
# define CRYPTO_EX_INDEX_X509_STORE 4
|
||||
# define CRYPTO_EX_INDEX_X509_STORE_CTX 5
|
||||
# define CRYPTO_EX_INDEX_DH 6
|
||||
# define CRYPTO_EX_INDEX_DSA 7
|
||||
# define CRYPTO_EX_INDEX_EC_KEY 8
|
||||
# define CRYPTO_EX_INDEX_RSA 9
|
||||
# define CRYPTO_EX_INDEX_ENGINE 10
|
||||
# define CRYPTO_EX_INDEX_UI 11
|
||||
# define CRYPTO_EX_INDEX_BIO 12
|
||||
# define CRYPTO_EX_INDEX_APP 13
|
||||
# define CRYPTO_EX_INDEX_UI_METHOD 14
|
||||
# define CRYPTO_EX_INDEX_RAND_DRBG 15
|
||||
# define CRYPTO_EX_INDEX_DRBG CRYPTO_EX_INDEX_RAND_DRBG
|
||||
# define CRYPTO_EX_INDEX_OPENSSL_CTX 16
|
||||
# define CRYPTO_EX_INDEX__COUNT 17
|
||||
|
||||
/* No longer needed, so this is a no-op */
|
||||
#define OPENSSL_malloc_init() while(0) continue
|
||||
|
||||
@@ -203,6 +165,36 @@ const char *OPENSSL_info(int type);
|
||||
|
||||
int OPENSSL_issetugid(void);
|
||||
|
||||
struct crypto_ex_data_st {
|
||||
OPENSSL_CTX *ctx;
|
||||
STACK_OF(void) *sk;
|
||||
};
|
||||
DEFINE_STACK_OF(void)
|
||||
|
||||
/*
|
||||
* Per class, we have a STACK of function pointers.
|
||||
*/
|
||||
# define CRYPTO_EX_INDEX_SSL 0
|
||||
# define CRYPTO_EX_INDEX_SSL_CTX 1
|
||||
# define CRYPTO_EX_INDEX_SSL_SESSION 2
|
||||
# define CRYPTO_EX_INDEX_X509 3
|
||||
# define CRYPTO_EX_INDEX_X509_STORE 4
|
||||
# define CRYPTO_EX_INDEX_X509_STORE_CTX 5
|
||||
# define CRYPTO_EX_INDEX_DH 6
|
||||
# define CRYPTO_EX_INDEX_DSA 7
|
||||
# define CRYPTO_EX_INDEX_EC_KEY 8
|
||||
# define CRYPTO_EX_INDEX_RSA 9
|
||||
# define CRYPTO_EX_INDEX_ENGINE 10
|
||||
# define CRYPTO_EX_INDEX_UI 11
|
||||
# define CRYPTO_EX_INDEX_BIO 12
|
||||
# define CRYPTO_EX_INDEX_APP 13
|
||||
# define CRYPTO_EX_INDEX_UI_METHOD 14
|
||||
# define CRYPTO_EX_INDEX_RAND_DRBG 15
|
||||
# define CRYPTO_EX_INDEX_DRBG CRYPTO_EX_INDEX_RAND_DRBG
|
||||
# define CRYPTO_EX_INDEX_OPENSSL_CTX 16
|
||||
# define CRYPTO_EX_INDEX_COUNT 17
|
||||
# define CRYPTO_EX_INDEX__COUNT CRYPTO_EX_INDEX_COUNT
|
||||
|
||||
typedef void CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
|
||||
int idx, long argl, void *argp);
|
||||
typedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
|
||||
@@ -210,8 +202,9 @@ typedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
|
||||
typedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from,
|
||||
void *from_d, int idx, long argl, void *argp);
|
||||
__owur int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp,
|
||||
CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func,
|
||||
CRYPTO_EX_free *free_func);
|
||||
CRYPTO_EX_new *new_func,
|
||||
CRYPTO_EX_dup *dup_func,
|
||||
CRYPTO_EX_free *free_func);
|
||||
/* No longer use an index. */
|
||||
int CRYPTO_free_ex_index(int class_index, int idx);
|
||||
|
||||
@@ -297,14 +290,16 @@ typedef struct crypto_threadid_st {
|
||||
# define CRYPTO_get_dynlock_destroy_callback() (NULL)
|
||||
# endif /* OPENSSL_NO_DEPRECATED_1_1_0 */
|
||||
|
||||
int CRYPTO_set_mem_functions(
|
||||
void *(*m) (size_t, const char *, int),
|
||||
void *(*r) (void *, size_t, const char *, int),
|
||||
void (*f) (void *, const char *, int));
|
||||
void CRYPTO_get_mem_functions(
|
||||
void *(**m) (size_t, const char *, int),
|
||||
void *(**r) (void *, size_t, const char *, int),
|
||||
void (**f) (void *, const char *, int));
|
||||
typedef void *(*CRYPTO_malloc_fn)(size_t num, const char *file, int line);
|
||||
typedef void *(*CRYPTO_realloc_fn)(void *addr, size_t num, const char *file,
|
||||
int line);
|
||||
typedef void (*CRYPTO_free_fn)(void *addr, const char *file, int line);
|
||||
int CRYPTO_set_mem_functions(CRYPTO_malloc_fn malloc_fn,
|
||||
CRYPTO_realloc_fn realloc_fn,
|
||||
CRYPTO_free_fn free_fn);
|
||||
void CRYPTO_get_mem_functions(CRYPTO_malloc_fn *malloc_fn,
|
||||
CRYPTO_realloc_fn *realloc_fn,
|
||||
CRYPTO_free_fn *free_fn);
|
||||
|
||||
void *CRYPTO_malloc(size_t num, const char *file, int line);
|
||||
void *CRYPTO_zalloc(size_t num, const char *file, int line);
|
||||
@@ -317,7 +312,7 @@ void *CRYPTO_realloc(void *addr, size_t num, const char *file, int line);
|
||||
void *CRYPTO_clear_realloc(void *addr, size_t old_num, size_t num,
|
||||
const char *file, int line);
|
||||
|
||||
int CRYPTO_secure_malloc_init(size_t sz, int minsize);
|
||||
int CRYPTO_secure_malloc_init(size_t sz, size_t minsize);
|
||||
int CRYPTO_secure_malloc_done(void);
|
||||
void *CRYPTO_secure_malloc(size_t num, const char *file, int line);
|
||||
void *CRYPTO_secure_zalloc(size_t num, const char *file, int line);
|
||||
@@ -332,6 +327,15 @@ size_t CRYPTO_secure_used(void);
|
||||
void OPENSSL_cleanse(void *ptr, size_t len);
|
||||
|
||||
# ifndef OPENSSL_NO_CRYPTO_MDEBUG
|
||||
/*
|
||||
* The following can be used to detect memory leaks in the library. If
|
||||
* used, it turns on malloc checking
|
||||
*/
|
||||
# define CRYPTO_MEM_CHECK_OFF 0x0 /* Control only */
|
||||
# define CRYPTO_MEM_CHECK_ON 0x1 /* Control and mode bit */
|
||||
# define CRYPTO_MEM_CHECK_ENABLE 0x2 /* Control and mode bit */
|
||||
# define CRYPTO_MEM_CHECK_DISABLE 0x3 /* Control only */
|
||||
|
||||
void CRYPTO_get_alloc_counts(int *mcount, int *rcount, int *fcount);
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
# define OPENSSL_mem_debug_push(info) \
|
||||
@@ -360,7 +364,7 @@ DEPRECATEDIN_3_0(int CRYPTO_mem_leaks_cb(
|
||||
DEPRECATEDIN_3_0(int CRYPTO_mem_leaks_fp(FILE *))
|
||||
# endif
|
||||
DEPRECATEDIN_3_0(int CRYPTO_mem_leaks(BIO *bio))
|
||||
# endif
|
||||
# endif /* OPENSSL_NO_CRYPTO_MDEBUG */
|
||||
|
||||
/* die if we have to */
|
||||
ossl_noreturn void OPENSSL_die(const char *assertion, const char *file, int line);
|
||||
|
||||
+122
-91
@@ -19,17 +19,18 @@
|
||||
# include <openssl/opensslconf.h>
|
||||
|
||||
# ifndef OPENSSL_NO_DES
|
||||
# ifdef __cplusplus
|
||||
# ifdef __cplusplus
|
||||
extern "C" {
|
||||
# endif
|
||||
# include <openssl/e_os2.h>
|
||||
# endif
|
||||
# include <openssl/e_os2.h>
|
||||
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
typedef unsigned int DES_LONG;
|
||||
|
||||
# ifdef OPENSSL_BUILD_SHLIBCRYPTO
|
||||
# undef OPENSSL_EXTERN
|
||||
# define OPENSSL_EXTERN OPENSSL_EXPORT
|
||||
# endif
|
||||
# ifdef OPENSSL_BUILD_SHLIBCRYPTO
|
||||
# undef OPENSSL_EXTERN
|
||||
# define OPENSSL_EXTERN OPENSSL_EXPORT
|
||||
# endif
|
||||
|
||||
typedef unsigned char DES_cblock[8];
|
||||
typedef /* const */ unsigned char const_DES_cblock[8];
|
||||
@@ -48,50 +49,61 @@ typedef struct DES_ks {
|
||||
} ks[16];
|
||||
} DES_key_schedule;
|
||||
|
||||
# define DES_KEY_SZ (sizeof(DES_cblock))
|
||||
# define DES_SCHEDULE_SZ (sizeof(DES_key_schedule))
|
||||
# define DES_KEY_SZ (sizeof(DES_cblock))
|
||||
# define DES_SCHEDULE_SZ (sizeof(DES_key_schedule))
|
||||
|
||||
# define DES_ENCRYPT 1
|
||||
# define DES_DECRYPT 0
|
||||
# define DES_ENCRYPT 1
|
||||
# define DES_DECRYPT 0
|
||||
|
||||
# define DES_CBC_MODE 0
|
||||
# define DES_PCBC_MODE 1
|
||||
# define DES_CBC_MODE 0
|
||||
# define DES_PCBC_MODE 1
|
||||
|
||||
# define DES_ecb2_encrypt(i,o,k1,k2,e) \
|
||||
# define DES_ecb2_encrypt(i,o,k1,k2,e) \
|
||||
DES_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e))
|
||||
|
||||
# define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \
|
||||
# define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \
|
||||
DES_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e))
|
||||
|
||||
# define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \
|
||||
# define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \
|
||||
DES_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e))
|
||||
|
||||
# define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \
|
||||
# define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \
|
||||
DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))
|
||||
|
||||
const char *DES_options(void);
|
||||
void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,
|
||||
DES_key_schedule *ks1, DES_key_schedule *ks2,
|
||||
DES_key_schedule *ks3, int enc);
|
||||
DES_LONG DES_cbc_cksum(const unsigned char *input, DES_cblock *output,
|
||||
long length, DES_key_schedule *schedule,
|
||||
const_DES_cblock *ivec);
|
||||
# define DES_fixup_key_parity DES_set_odd_parity
|
||||
# endif
|
||||
|
||||
DEPRECATEDIN_3_0(const char *DES_options(void))
|
||||
DEPRECATEDIN_3_0(void DES_ecb3_encrypt(const_DES_cblock *input,
|
||||
DES_cblock *output,
|
||||
DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2,
|
||||
DES_key_schedule *ks3, int enc))
|
||||
DEPRECATEDIN_3_0(DES_LONG DES_cbc_cksum(const unsigned char *input,
|
||||
DES_cblock *output, long length,
|
||||
DES_key_schedule *schedule,
|
||||
const_DES_cblock *ivec))
|
||||
/* DES_cbc_encrypt does not update the IV! Use DES_ncbc_encrypt instead. */
|
||||
void DES_cbc_encrypt(const unsigned char *input, unsigned char *output,
|
||||
long length, DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int enc);
|
||||
void DES_ncbc_encrypt(const unsigned char *input, unsigned char *output,
|
||||
long length, DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int enc);
|
||||
void DES_xcbc_encrypt(const unsigned char *input, unsigned char *output,
|
||||
long length, DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, const_DES_cblock *inw,
|
||||
const_DES_cblock *outw, int enc);
|
||||
void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
|
||||
long length, DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int enc);
|
||||
void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output,
|
||||
DES_key_schedule *ks, int enc);
|
||||
DEPRECATEDIN_3_0(void DES_cbc_encrypt(const unsigned char *input,
|
||||
unsigned char *output, long length,
|
||||
DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int enc))
|
||||
DEPRECATEDIN_3_0(void DES_ncbc_encrypt(const unsigned char *input,
|
||||
unsigned char *output, long length,
|
||||
DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int enc))
|
||||
DEPRECATEDIN_3_0(void DES_xcbc_encrypt(const unsigned char *input,
|
||||
unsigned char *output, long length,
|
||||
DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, const_DES_cblock *inw,
|
||||
const_DES_cblock *outw, int enc))
|
||||
DEPRECATEDIN_3_0(void DES_cfb_encrypt(const unsigned char *in,
|
||||
unsigned char *out, int numbits,
|
||||
long length, DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int enc))
|
||||
DEPRECATEDIN_3_0(void DES_ecb_encrypt(const_DES_cblock *input,
|
||||
DES_cblock *output, DES_key_schedule *ks,
|
||||
int enc))
|
||||
|
||||
/*
|
||||
* This is the DES encryption function that gets called by just about every
|
||||
@@ -103,7 +115,8 @@ void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output,
|
||||
* long's and ks is the DES_key_schedule to use. enc, is non zero specifies
|
||||
* encryption, zero if decryption.
|
||||
*/
|
||||
void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc);
|
||||
DEPRECATEDIN_3_0(void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks,
|
||||
int enc))
|
||||
|
||||
/*
|
||||
* This functions is the same as DES_encrypt1() except that the DES initial
|
||||
@@ -113,64 +126,82 @@ void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc);
|
||||
* DES_encrypt2() DES_encrypt2() FP() is the same as DES_encrypt1()
|
||||
* DES_encrypt1() DES_encrypt1() except faster :-).
|
||||
*/
|
||||
void DES_encrypt2(DES_LONG *data, DES_key_schedule *ks, int enc);
|
||||
DEPRECATEDIN_3_0(void DES_encrypt2(DES_LONG *data, DES_key_schedule *ks,
|
||||
int enc))
|
||||
|
||||
void DES_encrypt3(DES_LONG *data, DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2, DES_key_schedule *ks3);
|
||||
void DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2, DES_key_schedule *ks3);
|
||||
void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output,
|
||||
long length,
|
||||
DES_key_schedule *ks1, DES_key_schedule *ks2,
|
||||
DES_key_schedule *ks3, DES_cblock *ivec, int enc);
|
||||
void DES_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out,
|
||||
long length, DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2, DES_key_schedule *ks3,
|
||||
DES_cblock *ivec, int *num, int enc);
|
||||
void DES_ede3_cfb_encrypt(const unsigned char *in, unsigned char *out,
|
||||
int numbits, long length, DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2, DES_key_schedule *ks3,
|
||||
DES_cblock *ivec, int enc);
|
||||
void DES_ede3_ofb64_encrypt(const unsigned char *in, unsigned char *out,
|
||||
long length, DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2, DES_key_schedule *ks3,
|
||||
DES_cblock *ivec, int *num);
|
||||
char *DES_fcrypt(const char *buf, const char *salt, char *ret);
|
||||
char *DES_crypt(const char *buf, const char *salt);
|
||||
void DES_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
|
||||
long length, DES_key_schedule *schedule,
|
||||
DES_cblock *ivec);
|
||||
void DES_pcbc_encrypt(const unsigned char *input, unsigned char *output,
|
||||
long length, DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int enc);
|
||||
DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[],
|
||||
long length, int out_count, DES_cblock *seed);
|
||||
int DES_random_key(DES_cblock *ret);
|
||||
void DES_set_odd_parity(DES_cblock *key);
|
||||
int DES_check_key_parity(const_DES_cblock *key);
|
||||
int DES_is_weak_key(const_DES_cblock *key);
|
||||
DEPRECATEDIN_3_0(void DES_encrypt3(DES_LONG *data, DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2, DES_key_schedule *ks3))
|
||||
DEPRECATEDIN_3_0(void DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2, DES_key_schedule *ks3))
|
||||
DEPRECATEDIN_3_0(void DES_ede3_cbc_encrypt(const unsigned char *input,
|
||||
unsigned char *output, long length,
|
||||
DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2,
|
||||
DES_key_schedule *ks3,
|
||||
DES_cblock *ivec, int enc))
|
||||
DEPRECATEDIN_3_0(void DES_ede3_cfb64_encrypt(const unsigned char *in,
|
||||
unsigned char *out, long length,
|
||||
DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2,
|
||||
DES_key_schedule *ks3,
|
||||
DES_cblock *ivec, int *num,
|
||||
int enc))
|
||||
DEPRECATEDIN_3_0(void DES_ede3_cfb_encrypt(const unsigned char *in,
|
||||
unsigned char *out, int numbits,
|
||||
long length, DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2,
|
||||
DES_key_schedule *ks3,
|
||||
DES_cblock *ivec, int enc))
|
||||
DEPRECATEDIN_3_0(void DES_ede3_ofb64_encrypt(const unsigned char *in,
|
||||
unsigned char *out, long length,
|
||||
DES_key_schedule *ks1,
|
||||
DES_key_schedule *ks2,
|
||||
DES_key_schedule *ks3,
|
||||
DES_cblock *ivec, int *num))
|
||||
DEPRECATEDIN_3_0(char *DES_fcrypt(const char *buf, const char *salt, char *ret))
|
||||
DEPRECATEDIN_3_0(char *DES_crypt(const char *buf, const char *salt))
|
||||
DEPRECATEDIN_3_0(void DES_ofb_encrypt(const unsigned char *in,
|
||||
unsigned char *out, int numbits,
|
||||
long length, DES_key_schedule *schedule,
|
||||
DES_cblock *ivec))
|
||||
DEPRECATEDIN_3_0(void DES_pcbc_encrypt(const unsigned char *input,
|
||||
unsigned char *output, long length,
|
||||
DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int enc))
|
||||
DEPRECATEDIN_3_0(DES_LONG DES_quad_cksum(const unsigned char *input,
|
||||
DES_cblock output[], long length,
|
||||
int out_count, DES_cblock *seed))
|
||||
DEPRECATEDIN_3_0(int DES_random_key(DES_cblock *ret))
|
||||
DEPRECATEDIN_3_0(void DES_set_odd_parity(DES_cblock *key))
|
||||
DEPRECATEDIN_3_0(int DES_check_key_parity(const_DES_cblock *key))
|
||||
DEPRECATEDIN_3_0(int DES_is_weak_key(const_DES_cblock *key))
|
||||
/*
|
||||
* DES_set_key (= set_key = DES_key_sched = key_sched) calls
|
||||
* DES_set_key_checked
|
||||
*/
|
||||
int DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule);
|
||||
int DES_key_sched(const_DES_cblock *key, DES_key_schedule *schedule);
|
||||
int DES_set_key_checked(const_DES_cblock *key, DES_key_schedule *schedule);
|
||||
void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule);
|
||||
void DES_string_to_key(const char *str, DES_cblock *key);
|
||||
void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2);
|
||||
void DES_cfb64_encrypt(const unsigned char *in, unsigned char *out,
|
||||
long length, DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int *num, int enc);
|
||||
void DES_ofb64_encrypt(const unsigned char *in, unsigned char *out,
|
||||
long length, DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int *num);
|
||||
DEPRECATEDIN_3_0(int DES_set_key(const_DES_cblock *key,
|
||||
DES_key_schedule *schedule))
|
||||
DEPRECATEDIN_3_0(int DES_key_sched(const_DES_cblock *key,
|
||||
DES_key_schedule *schedule))
|
||||
DEPRECATEDIN_3_0(int DES_set_key_checked(const_DES_cblock *key,
|
||||
DES_key_schedule *schedule))
|
||||
DEPRECATEDIN_3_0(void DES_set_key_unchecked(const_DES_cblock *key,
|
||||
DES_key_schedule *schedule))
|
||||
DEPRECATEDIN_3_0(void DES_string_to_key(const char *str, DES_cblock *key))
|
||||
DEPRECATEDIN_3_0(void DES_string_to_2keys(const char *str, DES_cblock *key1,
|
||||
DES_cblock *key2))
|
||||
DEPRECATEDIN_3_0(void DES_cfb64_encrypt(const unsigned char *in,
|
||||
unsigned char *out, long length,
|
||||
DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int *num, int enc))
|
||||
DEPRECATEDIN_3_0(void DES_ofb64_encrypt(const unsigned char *in,
|
||||
unsigned char *out, long length,
|
||||
DES_key_schedule *schedule,
|
||||
DES_cblock *ivec, int *num))
|
||||
|
||||
# define DES_fixup_key_parity DES_set_odd_parity
|
||||
|
||||
# ifdef __cplusplus
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
|
||||
#endif
|
||||
+11
-2
@@ -75,6 +75,10 @@ DECLARE_ASN1_ITEM(DHparams)
|
||||
# define DH_GENERATOR_5 5
|
||||
|
||||
/* DH_check error codes */
|
||||
/*
|
||||
* NB: These values must align with the equivalently named macros in
|
||||
* internal/ffc.h.
|
||||
*/
|
||||
# define DH_CHECK_P_NOT_PRIME 0x01
|
||||
# define DH_CHECK_P_NOT_SAFE_PRIME 0x02
|
||||
# define DH_UNABLE_TO_CHECK_GENERATOR 0x04
|
||||
@@ -96,6 +100,11 @@ DECLARE_ASN1_ITEM(DHparams)
|
||||
*/
|
||||
# define DH_CHECK_P_NOT_STRONG_PRIME DH_CHECK_P_NOT_SAFE_PRIME
|
||||
|
||||
/* DH parameter generation types used by EVP_PKEY_CTX_set_dh_paramgen_type() */
|
||||
# define DH_PARAMGEN_TYPE_GENERATOR 0 /* Use a generator g */
|
||||
# define DH_PARAMGEN_TYPE_FIPS_186_2 1 /* Use legacy FIPS186-2 standard */
|
||||
# define DH_PARAMGEN_TYPE_FIPS_186_4 2 /* Use FIPS186-4 standard */
|
||||
|
||||
# define d2i_DHparams_fp(fp,x) \
|
||||
(DH *)ASN1_d2i_fp((char *(*)())DH_new, \
|
||||
(char *(*)())d2i_DHparams, \
|
||||
@@ -171,9 +180,9 @@ DH *DH_get_1024_160(void);
|
||||
DH *DH_get_2048_224(void);
|
||||
DH *DH_get_2048_256(void);
|
||||
|
||||
/* Named parameters, currently RFC7919 */
|
||||
/* Named parameters, currently RFC7919 and RFC3526 */
|
||||
DH *DH_new_by_nid(int nid);
|
||||
int DH_get_nid(const DH *dh);
|
||||
int DH_get_nid(DH *dh);
|
||||
|
||||
# ifndef OPENSSL_NO_CMS
|
||||
/* RFC2631 KDF */
|
||||
|
||||
+222
-206
@@ -20,19 +20,19 @@
|
||||
# include <openssl/opensslconf.h>
|
||||
|
||||
# ifndef OPENSSL_NO_EC
|
||||
# include <openssl/asn1.h>
|
||||
# include <openssl/symhacks.h>
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# include <openssl/bn.h>
|
||||
# endif
|
||||
# include <openssl/ecerr.h>
|
||||
# ifdef __cplusplus
|
||||
# include <openssl/asn1.h>
|
||||
# include <openssl/symhacks.h>
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# include <openssl/bn.h>
|
||||
# endif
|
||||
# include <openssl/ecerr.h>
|
||||
# ifdef __cplusplus
|
||||
extern "C" {
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_ECC_MAX_FIELD_BITS
|
||||
# define OPENSSL_ECC_MAX_FIELD_BITS 661
|
||||
# endif
|
||||
# ifndef OPENSSL_ECC_MAX_FIELD_BITS
|
||||
# define OPENSSL_ECC_MAX_FIELD_BITS 661
|
||||
# endif
|
||||
|
||||
/** Enum for the point conversion form as defined in X9.62 (ECDSA)
|
||||
* for the encoding of a elliptic curve point (x,y) */
|
||||
@@ -73,7 +73,7 @@ const EC_METHOD *EC_GFp_mont_method(void);
|
||||
*/
|
||||
const EC_METHOD *EC_GFp_nist_method(void);
|
||||
|
||||
# ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
|
||||
# ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
|
||||
/** Returns 64-bit optimized methods for nistp224
|
||||
* \return EC_METHOD object
|
||||
*/
|
||||
@@ -88,9 +88,9 @@ const EC_METHOD *EC_GFp_nistp256_method(void);
|
||||
* \return EC_METHOD object
|
||||
*/
|
||||
const EC_METHOD *EC_GFp_nistp521_method(void);
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
/********************************************************************/
|
||||
/* EC_METHOD for curves over GF(2^m) */
|
||||
/********************************************************************/
|
||||
@@ -100,7 +100,7 @@ const EC_METHOD *EC_GFp_nistp521_method(void);
|
||||
*/
|
||||
const EC_METHOD *EC_GF2m_simple_method(void);
|
||||
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/********************************************************************/
|
||||
/* EC_GROUP functions */
|
||||
@@ -298,7 +298,7 @@ DEPRECATEDIN_3_0(int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p,
|
||||
BIGNUM *a, BIGNUM *b,
|
||||
BN_CTX *ctx))
|
||||
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
/** Sets the parameter of an ec curve. Synonym for EC_GROUP_set_curve
|
||||
* \param group EC_GROUP object
|
||||
* \param p BIGNUM with the prime number (GFp) or the polynomial
|
||||
@@ -324,7 +324,7 @@ DEPRECATEDIN_3_0(int EC_GROUP_set_curve_GF2m(EC_GROUP *group, const BIGNUM *p,
|
||||
DEPRECATEDIN_3_0(int EC_GROUP_get_curve_GF2m(const EC_GROUP *group, BIGNUM *p,
|
||||
BIGNUM *a, BIGNUM *b,
|
||||
BN_CTX *ctx))
|
||||
# endif
|
||||
# endif
|
||||
/** Returns the number of bits needed to represent a field element
|
||||
* \param group EC_GROUP object
|
||||
* \return number of bits needed to represent a field element
|
||||
@@ -368,7 +368,7 @@ int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ctx);
|
||||
*/
|
||||
EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a,
|
||||
const BIGNUM *b, BN_CTX *ctx);
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
/** Creates a new EC_GROUP object with the specified parameters defined
|
||||
* over GF2m (defined by the equation y^2 + x*y = x^3 + a*x^2 + b)
|
||||
* \param p BIGNUM with the polynomial defining the underlying field
|
||||
@@ -379,7 +379,7 @@ EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a,
|
||||
*/
|
||||
EC_GROUP *EC_GROUP_new_curve_GF2m(const BIGNUM *p, const BIGNUM *a,
|
||||
const BIGNUM *b, BN_CTX *ctx);
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/**
|
||||
* Creates a EC_GROUP object with a curve specified by a NID
|
||||
@@ -609,7 +609,7 @@ DEPRECATEDIN_3_0(int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *gro
|
||||
const BIGNUM *x,
|
||||
int y_bit,
|
||||
BN_CTX *ctx))
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
/** Sets the affine coordinates of an EC_POINT. A synonym of
|
||||
* EC_POINT_set_affine_coordinates
|
||||
* \param group underlying EC_GROUP object
|
||||
@@ -654,7 +654,7 @@ DEPRECATEDIN_3_0(int EC_POINT_set_compressed_coordinates_GF2m(const EC_GROUP *gr
|
||||
const BIGNUM *x,
|
||||
int y_bit,
|
||||
BN_CTX *ctx))
|
||||
# endif
|
||||
# endif
|
||||
/** Encodes a EC_POINT object to a octet string
|
||||
* \param group underlying EC_GROUP object
|
||||
* \param p EC_POINT object
|
||||
@@ -818,42 +818,45 @@ DECLARE_ASN1_ALLOC_FUNCTIONS(ECPARAMETERS)
|
||||
* represent the field elements
|
||||
*/
|
||||
int EC_GROUP_get_basis_type(const EC_GROUP *);
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
int EC_GROUP_get_trinomial_basis(const EC_GROUP *, unsigned int *k);
|
||||
int EC_GROUP_get_pentanomial_basis(const EC_GROUP *, unsigned int *k1,
|
||||
unsigned int *k2, unsigned int *k3);
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# define OPENSSL_EC_EXPLICIT_CURVE 0x000
|
||||
# define OPENSSL_EC_NAMED_CURVE 0x001
|
||||
# define OPENSSL_EC_EXPLICIT_CURVE 0x000
|
||||
# define OPENSSL_EC_NAMED_CURVE 0x001
|
||||
|
||||
EC_GROUP *d2i_ECPKParameters(EC_GROUP **, const unsigned char **in, long len);
|
||||
int i2d_ECPKParameters(const EC_GROUP *, unsigned char **out);
|
||||
|
||||
# define d2i_ECPKParameters_bio(bp,x) ASN1_d2i_bio_of(EC_GROUP,NULL,d2i_ECPKParameters,bp,x)
|
||||
# define i2d_ECPKParameters_bio(bp,x) ASN1_i2d_bio_of(EC_GROUP,i2d_ECPKParameters,bp,x)
|
||||
# define d2i_ECPKParameters_fp(fp,x) (EC_GROUP *)ASN1_d2i_fp(NULL, \
|
||||
(char *(*)())d2i_ECPKParameters,(fp),(unsigned char **)(x))
|
||||
# define i2d_ECPKParameters_fp(fp,x) ASN1_i2d_fp(i2d_ECPKParameters,(fp), \
|
||||
(unsigned char *)(x))
|
||||
# define d2i_ECPKParameters_bio(bp,x) \
|
||||
ASN1_d2i_bio_of(EC_GROUP, NULL, d2i_ECPKParameters, bp, x)
|
||||
# define i2d_ECPKParameters_bio(bp,x) \
|
||||
ASN1_i2d_bio_of(EC_GROUP, i2d_ECPKParameters, bp, x)
|
||||
# define d2i_ECPKParameters_fp(fp,x) \
|
||||
(EC_GROUP *)ASN1_d2i_fp(NULL, (char *(*)())d2i_ECPKParameters, (fp), \
|
||||
(unsigned char **)(x))
|
||||
# define i2d_ECPKParameters_fp(fp,x) \
|
||||
ASN1_i2d_fp(i2d_ECPKParameters,(fp), (unsigned char *)(x))
|
||||
|
||||
int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off);
|
||||
# ifndef OPENSSL_NO_STDIO
|
||||
# ifndef OPENSSL_NO_STDIO
|
||||
int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off);
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/********************************************************************/
|
||||
/* EC_KEY functions */
|
||||
/********************************************************************/
|
||||
|
||||
/* some values for the encoding_flag */
|
||||
# define EC_PKEY_NO_PARAMETERS 0x001
|
||||
# define EC_PKEY_NO_PUBKEY 0x002
|
||||
# define EC_PKEY_NO_PARAMETERS 0x001
|
||||
# define EC_PKEY_NO_PUBKEY 0x002
|
||||
|
||||
/* some values for the flags field */
|
||||
# define EC_FLAG_NON_FIPS_ALLOW 0x1
|
||||
# define EC_FLAG_FIPS_CHECKED 0x2
|
||||
# define EC_FLAG_COFACTOR_ECDH 0x1000
|
||||
# define EC_FLAG_NON_FIPS_ALLOW 0x1
|
||||
# define EC_FLAG_FIPS_CHECKED 0x2
|
||||
# define EC_FLAG_COFACTOR_ECDH 0x1000
|
||||
|
||||
/**
|
||||
* Creates a new EC_KEY object.
|
||||
@@ -973,7 +976,7 @@ void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags);
|
||||
point_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *key);
|
||||
void EC_KEY_set_conv_form(EC_KEY *eckey, point_conversion_form_t cform);
|
||||
|
||||
#define EC_KEY_get_ex_new_index(l, p, newf, dupf, freef) \
|
||||
# define EC_KEY_get_ex_new_index(l, p, newf, dupf, freef) \
|
||||
CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_EC_KEY, l, p, newf, dupf, freef)
|
||||
int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg);
|
||||
void *EC_KEY_get_ex_data(const EC_KEY *key, int idx);
|
||||
@@ -1142,7 +1145,7 @@ int ECParameters_print(BIO *bp, const EC_KEY *key);
|
||||
*/
|
||||
int EC_KEY_print(BIO *bp, const EC_KEY *key, int off);
|
||||
|
||||
# ifndef OPENSSL_NO_STDIO
|
||||
# ifndef OPENSSL_NO_STDIO
|
||||
/** Prints out the ec parameters on human readable form.
|
||||
* \param fp file descriptor to which the information is printed
|
||||
* \param key EC_KEY object
|
||||
@@ -1158,7 +1161,7 @@ int ECParameters_print_fp(FILE *fp, const EC_KEY *key);
|
||||
*/
|
||||
int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off);
|
||||
|
||||
# endif
|
||||
# endif
|
||||
|
||||
const EC_KEY_METHOD *EC_KEY_OpenSSL(void);
|
||||
const EC_KEY_METHOD *EC_KEY_get_default_method(void);
|
||||
@@ -1177,10 +1180,11 @@ DEPRECATEDIN_3_0(int ECDH_KDF_X9_62(unsigned char *out, size_t outlen,
|
||||
const unsigned char *sinfo, size_t sinfolen,
|
||||
const EVP_MD *md))
|
||||
|
||||
int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
|
||||
const EC_KEY *ecdh,
|
||||
void *(*KDF) (const void *in, size_t inlen,
|
||||
void *out, size_t *outlen));
|
||||
DEPRECATEDIN_3_0(int ECDH_compute_key(void *out, size_t outlen,
|
||||
const EC_POINT *pub_key,
|
||||
const EC_KEY *ecdh,
|
||||
void *(*KDF)(const void *in, size_t inlen,
|
||||
void *out, size_t *outlen)))
|
||||
|
||||
typedef struct ECDSA_SIG_st ECDSA_SIG;
|
||||
|
||||
@@ -1242,8 +1246,8 @@ int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s);
|
||||
* \param eckey EC_KEY object containing a private EC key
|
||||
* \return pointer to a ECDSA_SIG structure or NULL if an error occurred
|
||||
*/
|
||||
ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dgst_len,
|
||||
EC_KEY *eckey);
|
||||
DEPRECATEDIN_3_0(ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst,
|
||||
int dgst_len, EC_KEY *eckey))
|
||||
|
||||
/** Computes ECDSA signature of a given hash value using the supplied
|
||||
* private key (note: sig must point to ECDSA_size(eckey) bytes of memory).
|
||||
@@ -1255,9 +1259,9 @@ ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dgst_len,
|
||||
* \param eckey EC_KEY object containing a private EC key
|
||||
* \return pointer to a ECDSA_SIG structure or NULL if an error occurred
|
||||
*/
|
||||
ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen,
|
||||
const BIGNUM *kinv, const BIGNUM *rp,
|
||||
EC_KEY *eckey);
|
||||
DEPRECATEDIN_3_0(ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst,
|
||||
int dgstlen, const BIGNUM *kinv,
|
||||
const BIGNUM *rp, EC_KEY *eckey))
|
||||
|
||||
/** Verifies that the supplied signature is a valid ECDSA
|
||||
* signature of the supplied hash value using the supplied public key.
|
||||
@@ -1268,8 +1272,8 @@ ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen,
|
||||
* \return 1 if the signature is valid, 0 if the signature is invalid
|
||||
* and -1 on error
|
||||
*/
|
||||
int ECDSA_do_verify(const unsigned char *dgst, int dgst_len,
|
||||
const ECDSA_SIG *sig, EC_KEY *eckey);
|
||||
DEPRECATEDIN_3_0(int ECDSA_do_verify(const unsigned char *dgst, int dgst_len,
|
||||
const ECDSA_SIG *sig, EC_KEY *eckey))
|
||||
|
||||
/** Precompute parts of the signing operation
|
||||
* \param eckey EC_KEY object containing a private EC key
|
||||
@@ -1278,7 +1282,8 @@ int ECDSA_do_verify(const unsigned char *dgst, int dgst_len,
|
||||
* \param rp BIGNUM pointer for x coordinate of k * generator
|
||||
* \return 1 on success and 0 otherwise
|
||||
*/
|
||||
int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp);
|
||||
DEPRECATEDIN_3_0(int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx,
|
||||
BIGNUM **kinv, BIGNUM **rp))
|
||||
|
||||
/** Computes ECDSA signature of a given hash value using the supplied
|
||||
* private key (note: sig must point to ECDSA_size(eckey) bytes of memory).
|
||||
@@ -1290,8 +1295,9 @@ int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp);
|
||||
* \param eckey EC_KEY object containing a private EC key
|
||||
* \return 1 on success and 0 otherwise
|
||||
*/
|
||||
int ECDSA_sign(int type, const unsigned char *dgst, int dgstlen,
|
||||
unsigned char *sig, unsigned int *siglen, EC_KEY *eckey);
|
||||
DEPRECATEDIN_3_0(int ECDSA_sign(int type, const unsigned char *dgst,
|
||||
int dgstlen, unsigned char *sig,
|
||||
unsigned int *siglen, EC_KEY *eckey))
|
||||
|
||||
/** Computes ECDSA signature of a given hash value using the supplied
|
||||
* private key (note: sig must point to ECDSA_size(eckey) bytes of memory).
|
||||
@@ -1306,9 +1312,10 @@ int ECDSA_sign(int type, const unsigned char *dgst, int dgstlen,
|
||||
* \param eckey EC_KEY object containing a private EC key
|
||||
* \return 1 on success and 0 otherwise
|
||||
*/
|
||||
int ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen,
|
||||
unsigned char *sig, unsigned int *siglen,
|
||||
const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
|
||||
DEPRECATEDIN_3_0(int ECDSA_sign_ex(int type, const unsigned char *dgst,
|
||||
int dgstlen, unsigned char *sig,
|
||||
unsigned int *siglen, const BIGNUM *kinv,
|
||||
const BIGNUM *rp, EC_KEY *eckey))
|
||||
|
||||
/** Verifies that the given signature is valid ECDSA signature
|
||||
* of the supplied hash value using the specified public key.
|
||||
@@ -1321,214 +1328,223 @@ int ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen,
|
||||
* \return 1 if the signature is valid, 0 if the signature is invalid
|
||||
* and -1 on error
|
||||
*/
|
||||
int ECDSA_verify(int type, const unsigned char *dgst, int dgstlen,
|
||||
const unsigned char *sig, int siglen, EC_KEY *eckey);
|
||||
DEPRECATEDIN_3_0(int ECDSA_verify(int type, const unsigned char *dgst,
|
||||
int dgstlen, const unsigned char *sig,
|
||||
int siglen, EC_KEY *eckey))
|
||||
|
||||
/** Returns the maximum length of the DER encoded signature
|
||||
* \param eckey EC_KEY object
|
||||
* \return numbers of bytes required for the DER encoded signature
|
||||
*/
|
||||
int ECDSA_size(const EC_KEY *eckey);
|
||||
DEPRECATEDIN_3_0(int ECDSA_size(const EC_KEY *eckey))
|
||||
|
||||
/********************************************************************/
|
||||
/* EC_KEY_METHOD constructors, destructors, writers and accessors */
|
||||
/********************************************************************/
|
||||
|
||||
EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth);
|
||||
void EC_KEY_METHOD_free(EC_KEY_METHOD *meth);
|
||||
void EC_KEY_METHOD_set_init(EC_KEY_METHOD *meth,
|
||||
int (*init)(EC_KEY *key),
|
||||
void (*finish)(EC_KEY *key),
|
||||
int (*copy)(EC_KEY *dest, const EC_KEY *src),
|
||||
int (*set_group)(EC_KEY *key, const EC_GROUP *grp),
|
||||
int (*set_private)(EC_KEY *key,
|
||||
const BIGNUM *priv_key),
|
||||
int (*set_public)(EC_KEY *key,
|
||||
const EC_POINT *pub_key));
|
||||
DEPRECATEDIN_3_0(EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth))
|
||||
DEPRECATEDIN_3_0(void EC_KEY_METHOD_free(EC_KEY_METHOD *meth))
|
||||
DEPRECATEDIN_3_0(void EC_KEY_METHOD_set_init
|
||||
(EC_KEY_METHOD *meth,
|
||||
int (*init)(EC_KEY *key),
|
||||
void (*finish)(EC_KEY *key),
|
||||
int (*copy)(EC_KEY *dest, const EC_KEY *src),
|
||||
int (*set_group)(EC_KEY *key, const EC_GROUP *grp),
|
||||
int (*set_private)(EC_KEY *key,
|
||||
const BIGNUM *priv_key),
|
||||
int (*set_public)(EC_KEY *key,
|
||||
const EC_POINT *pub_key)))
|
||||
|
||||
void EC_KEY_METHOD_set_keygen(EC_KEY_METHOD *meth,
|
||||
int (*keygen)(EC_KEY *key));
|
||||
DEPRECATEDIN_3_0(void EC_KEY_METHOD_set_keygen(EC_KEY_METHOD *meth,
|
||||
int (*keygen)(EC_KEY *key)))
|
||||
|
||||
void EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth,
|
||||
int (*ckey)(unsigned char **psec,
|
||||
size_t *pseclen,
|
||||
const EC_POINT *pub_key,
|
||||
const EC_KEY *ecdh));
|
||||
DEPRECATEDIN_3_0(void EC_KEY_METHOD_set_compute_key
|
||||
(EC_KEY_METHOD *meth,
|
||||
int (*ckey)(unsigned char **psec,
|
||||
size_t *pseclen,
|
||||
const EC_POINT *pub_key,
|
||||
const EC_KEY *ecdh)))
|
||||
|
||||
void EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth,
|
||||
int (*sign)(int type, const unsigned char *dgst,
|
||||
int dlen, unsigned char *sig,
|
||||
unsigned int *siglen,
|
||||
const BIGNUM *kinv, const BIGNUM *r,
|
||||
EC_KEY *eckey),
|
||||
int (*sign_setup)(EC_KEY *eckey, BN_CTX *ctx_in,
|
||||
BIGNUM **kinvp, BIGNUM **rp),
|
||||
ECDSA_SIG *(*sign_sig)(const unsigned char *dgst,
|
||||
int dgst_len,
|
||||
const BIGNUM *in_kinv,
|
||||
const BIGNUM *in_r,
|
||||
EC_KEY *eckey));
|
||||
DEPRECATEDIN_3_0(void EC_KEY_METHOD_set_sign
|
||||
(EC_KEY_METHOD *meth,
|
||||
int (*sign)(int type, const unsigned char *dgst,
|
||||
int dlen, unsigned char *sig,
|
||||
unsigned int *siglen,
|
||||
const BIGNUM *kinv, const BIGNUM *r,
|
||||
EC_KEY *eckey),
|
||||
int (*sign_setup)(EC_KEY *eckey, BN_CTX *ctx_in,
|
||||
BIGNUM **kinvp, BIGNUM **rp),
|
||||
ECDSA_SIG *(*sign_sig)(const unsigned char *dgst,
|
||||
int dgst_len,
|
||||
const BIGNUM *in_kinv,
|
||||
const BIGNUM *in_r,
|
||||
EC_KEY *eckey)))
|
||||
|
||||
void EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth,
|
||||
int (*verify)(int type, const unsigned
|
||||
char *dgst, int dgst_len,
|
||||
const unsigned char *sigbuf,
|
||||
int sig_len, EC_KEY *eckey),
|
||||
int (*verify_sig)(const unsigned char *dgst,
|
||||
int dgst_len,
|
||||
const ECDSA_SIG *sig,
|
||||
EC_KEY *eckey));
|
||||
DEPRECATEDIN_3_0(void EC_KEY_METHOD_set_verify
|
||||
(EC_KEY_METHOD *meth,
|
||||
int (*verify)(int type, const unsigned
|
||||
char *dgst, int dgst_len,
|
||||
const unsigned char *sigbuf,
|
||||
int sig_len, EC_KEY *eckey),
|
||||
int (*verify_sig)(const unsigned char *dgst,
|
||||
int dgst_len,
|
||||
const ECDSA_SIG *sig,
|
||||
EC_KEY *eckey)))
|
||||
|
||||
void EC_KEY_METHOD_get_init(const EC_KEY_METHOD *meth,
|
||||
int (**pinit)(EC_KEY *key),
|
||||
void (**pfinish)(EC_KEY *key),
|
||||
int (**pcopy)(EC_KEY *dest, const EC_KEY *src),
|
||||
int (**pset_group)(EC_KEY *key,
|
||||
const EC_GROUP *grp),
|
||||
int (**pset_private)(EC_KEY *key,
|
||||
const BIGNUM *priv_key),
|
||||
int (**pset_public)(EC_KEY *key,
|
||||
const EC_POINT *pub_key));
|
||||
DEPRECATEDIN_3_0(void EC_KEY_METHOD_get_init
|
||||
(const EC_KEY_METHOD *meth,
|
||||
int (**pinit)(EC_KEY *key),
|
||||
void (**pfinish)(EC_KEY *key),
|
||||
int (**pcopy)(EC_KEY *dest, const EC_KEY *src),
|
||||
int (**pset_group)(EC_KEY *key,
|
||||
const EC_GROUP *grp),
|
||||
int (**pset_private)(EC_KEY *key,
|
||||
const BIGNUM *priv_key),
|
||||
int (**pset_public)(EC_KEY *key,
|
||||
const EC_POINT *pub_key)))
|
||||
|
||||
void EC_KEY_METHOD_get_keygen(const EC_KEY_METHOD *meth,
|
||||
int (**pkeygen)(EC_KEY *key));
|
||||
DEPRECATEDIN_3_0(void EC_KEY_METHOD_get_keygen(const EC_KEY_METHOD *meth,
|
||||
int (**pkeygen)(EC_KEY *key)))
|
||||
|
||||
void EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth,
|
||||
int (**pck)(unsigned char **psec,
|
||||
size_t *pseclen,
|
||||
const EC_POINT *pub_key,
|
||||
const EC_KEY *ecdh));
|
||||
DEPRECATEDIN_3_0(void EC_KEY_METHOD_get_compute_key
|
||||
(const EC_KEY_METHOD *meth,
|
||||
int (**pck)(unsigned char **psec,
|
||||
size_t *pseclen,
|
||||
const EC_POINT *pub_key,
|
||||
const EC_KEY *ecdh)))
|
||||
|
||||
void EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth,
|
||||
int (**psign)(int type, const unsigned char *dgst,
|
||||
int dlen, unsigned char *sig,
|
||||
unsigned int *siglen,
|
||||
const BIGNUM *kinv, const BIGNUM *r,
|
||||
EC_KEY *eckey),
|
||||
int (**psign_setup)(EC_KEY *eckey, BN_CTX *ctx_in,
|
||||
BIGNUM **kinvp, BIGNUM **rp),
|
||||
ECDSA_SIG *(**psign_sig)(const unsigned char *dgst,
|
||||
int dgst_len,
|
||||
const BIGNUM *in_kinv,
|
||||
const BIGNUM *in_r,
|
||||
EC_KEY *eckey));
|
||||
DEPRECATEDIN_3_0(void EC_KEY_METHOD_get_sign
|
||||
(const EC_KEY_METHOD *meth,
|
||||
int (**psign)(int type, const unsigned char *dgst,
|
||||
int dlen, unsigned char *sig,
|
||||
unsigned int *siglen,
|
||||
const BIGNUM *kinv, const BIGNUM *r,
|
||||
EC_KEY *eckey),
|
||||
int (**psign_setup)(EC_KEY *eckey, BN_CTX *ctx_in,
|
||||
BIGNUM **kinvp, BIGNUM **rp),
|
||||
ECDSA_SIG *(**psign_sig)(const unsigned char *dgst,
|
||||
int dgst_len,
|
||||
const BIGNUM *in_kinv,
|
||||
const BIGNUM *in_r,
|
||||
EC_KEY *eckey)))
|
||||
|
||||
void EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth,
|
||||
int (**pverify)(int type, const unsigned
|
||||
char *dgst, int dgst_len,
|
||||
const unsigned char *sigbuf,
|
||||
int sig_len, EC_KEY *eckey),
|
||||
int (**pverify_sig)(const unsigned char *dgst,
|
||||
int dgst_len,
|
||||
const ECDSA_SIG *sig,
|
||||
EC_KEY *eckey));
|
||||
DEPRECATEDIN_3_0(void EC_KEY_METHOD_get_verify
|
||||
(const EC_KEY_METHOD *meth,
|
||||
int (**pverify)(int type, const unsigned
|
||||
char *dgst, int dgst_len,
|
||||
const unsigned char *sigbuf,
|
||||
int sig_len, EC_KEY *eckey),
|
||||
int (**pverify_sig)(const unsigned char *dgst,
|
||||
int dgst_len,
|
||||
const ECDSA_SIG *sig,
|
||||
EC_KEY *eckey)))
|
||||
|
||||
# define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x)
|
||||
# define ECParameters_dup(x) ASN1_dup_of(EC_KEY, i2d_ECParameters, \
|
||||
d2i_ECParameters, x)
|
||||
|
||||
# ifndef __cplusplus
|
||||
# if defined(__SUNPRO_C)
|
||||
# if __SUNPRO_C >= 0x520
|
||||
# pragma error_messages (default,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)
|
||||
# ifndef __cplusplus
|
||||
# if defined(__SUNPRO_C)
|
||||
# if __SUNPRO_C >= 0x520
|
||||
# pragma error_messages (default,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# define EVP_PKEY_CTX_set_ec_paramgen_curve_nid(ctx, nid) \
|
||||
# define EVP_PKEY_CTX_set_ec_paramgen_curve_nid(ctx, nid) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_PARAMGEN|EVP_PKEY_OP_KEYGEN, \
|
||||
EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID, nid, NULL)
|
||||
EVP_PKEY_OP_PARAMGEN|EVP_PKEY_OP_KEYGEN, \
|
||||
EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID, nid, NULL)
|
||||
|
||||
# define EVP_PKEY_CTX_set_ec_param_enc(ctx, flag) \
|
||||
# define EVP_PKEY_CTX_set_ec_param_enc(ctx, flag) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_PARAMGEN|EVP_PKEY_OP_KEYGEN, \
|
||||
EVP_PKEY_CTRL_EC_PARAM_ENC, flag, NULL)
|
||||
EVP_PKEY_OP_PARAMGEN|EVP_PKEY_OP_KEYGEN, \
|
||||
EVP_PKEY_CTRL_EC_PARAM_ENC, flag, NULL)
|
||||
|
||||
# define EVP_PKEY_CTX_set_ecdh_cofactor_mode(ctx, flag) \
|
||||
# define EVP_PKEY_CTX_set_ecdh_cofactor_mode(ctx, flag) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_ECDH_COFACTOR, flag, NULL)
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_ECDH_COFACTOR, flag, NULL)
|
||||
|
||||
# define EVP_PKEY_CTX_get_ecdh_cofactor_mode(ctx) \
|
||||
# define EVP_PKEY_CTX_get_ecdh_cofactor_mode(ctx) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_ECDH_COFACTOR, -2, NULL)
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_ECDH_COFACTOR, -2, NULL)
|
||||
|
||||
# define EVP_PKEY_CTX_set_ecdh_kdf_type(ctx, kdf) \
|
||||
# define EVP_PKEY_CTX_set_ecdh_kdf_type(ctx, kdf) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_KDF_TYPE, kdf, NULL)
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_KDF_TYPE, kdf, NULL)
|
||||
|
||||
# define EVP_PKEY_CTX_get_ecdh_kdf_type(ctx) \
|
||||
# define EVP_PKEY_CTX_get_ecdh_kdf_type(ctx) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_KDF_TYPE, -2, NULL)
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_KDF_TYPE, -2, NULL)
|
||||
|
||||
# define EVP_PKEY_CTX_set_ecdh_kdf_md(ctx, md) \
|
||||
# define EVP_PKEY_CTX_set_ecdh_kdf_md(ctx, md) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_KDF_MD, 0, (void *)(md))
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_KDF_MD, 0, (void *)(md))
|
||||
|
||||
# define EVP_PKEY_CTX_get_ecdh_kdf_md(ctx, pmd) \
|
||||
# define EVP_PKEY_CTX_get_ecdh_kdf_md(ctx, pmd) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_GET_EC_KDF_MD, 0, (void *)(pmd))
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_GET_EC_KDF_MD, 0, (void *)(pmd))
|
||||
|
||||
# define EVP_PKEY_CTX_set_ecdh_kdf_outlen(ctx, len) \
|
||||
# define EVP_PKEY_CTX_set_ecdh_kdf_outlen(ctx, len) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_KDF_OUTLEN, len, NULL)
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_KDF_OUTLEN, len, NULL)
|
||||
|
||||
# define EVP_PKEY_CTX_get_ecdh_kdf_outlen(ctx, plen) \
|
||||
# define EVP_PKEY_CTX_get_ecdh_kdf_outlen(ctx, plen) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN, 0, \
|
||||
(void *)(plen))
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN, 0, (void *)(plen))
|
||||
|
||||
# define EVP_PKEY_CTX_set0_ecdh_kdf_ukm(ctx, p, plen) \
|
||||
# define EVP_PKEY_CTX_set0_ecdh_kdf_ukm(ctx, p, plen) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_KDF_UKM, plen, (void *)(p))
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_EC_KDF_UKM, plen, (void *)(p))
|
||||
|
||||
# define EVP_PKEY_CTX_get0_ecdh_kdf_ukm(ctx, p) \
|
||||
# define EVP_PKEY_CTX_get0_ecdh_kdf_ukm(ctx, p) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_GET_EC_KDF_UKM, 0, (void *)(p))
|
||||
EVP_PKEY_OP_DERIVE, \
|
||||
EVP_PKEY_CTRL_GET_EC_KDF_UKM, 0, (void *)(p))
|
||||
|
||||
/* SM2 will skip the operation check so no need to pass operation here */
|
||||
# define EVP_PKEY_CTX_set1_id(ctx, id, id_len) \
|
||||
# define EVP_PKEY_CTX_set1_id(ctx, id, id_len) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, -1, -1, \
|
||||
EVP_PKEY_CTRL_SET1_ID, (int)id_len, (void*)(id))
|
||||
# define EVP_PKEY_CTX_get1_id(ctx, id) \
|
||||
EVP_PKEY_CTRL_SET1_ID, (int)id_len, (void*)(id))
|
||||
# define EVP_PKEY_CTX_get1_id(ctx, id) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, -1, -1, \
|
||||
EVP_PKEY_CTRL_GET1_ID, 0, (void*)(id))
|
||||
EVP_PKEY_CTRL_GET1_ID, 0, (void*)(id))
|
||||
|
||||
# define EVP_PKEY_CTX_get1_id_len(ctx, id_len) \
|
||||
# define EVP_PKEY_CTX_get1_id_len(ctx, id_len) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, -1, -1, \
|
||||
EVP_PKEY_CTRL_GET1_ID_LEN, 0, (void*)(id_len))
|
||||
EVP_PKEY_CTRL_GET1_ID_LEN, 0, (void*)(id_len))
|
||||
|
||||
# define EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID (EVP_PKEY_ALG_CTRL + 1)
|
||||
# define EVP_PKEY_CTRL_EC_PARAM_ENC (EVP_PKEY_ALG_CTRL + 2)
|
||||
# define EVP_PKEY_CTRL_EC_ECDH_COFACTOR (EVP_PKEY_ALG_CTRL + 3)
|
||||
# define EVP_PKEY_CTRL_EC_KDF_TYPE (EVP_PKEY_ALG_CTRL + 4)
|
||||
# define EVP_PKEY_CTRL_EC_KDF_MD (EVP_PKEY_ALG_CTRL + 5)
|
||||
# define EVP_PKEY_CTRL_GET_EC_KDF_MD (EVP_PKEY_ALG_CTRL + 6)
|
||||
# define EVP_PKEY_CTRL_EC_KDF_OUTLEN (EVP_PKEY_ALG_CTRL + 7)
|
||||
# define EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN (EVP_PKEY_ALG_CTRL + 8)
|
||||
# define EVP_PKEY_CTRL_EC_KDF_UKM (EVP_PKEY_ALG_CTRL + 9)
|
||||
# define EVP_PKEY_CTRL_GET_EC_KDF_UKM (EVP_PKEY_ALG_CTRL + 10)
|
||||
# define EVP_PKEY_CTRL_SET1_ID (EVP_PKEY_ALG_CTRL + 11)
|
||||
# define EVP_PKEY_CTRL_GET1_ID (EVP_PKEY_ALG_CTRL + 12)
|
||||
# define EVP_PKEY_CTRL_GET1_ID_LEN (EVP_PKEY_ALG_CTRL + 13)
|
||||
|
||||
# define EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID (EVP_PKEY_ALG_CTRL + 1)
|
||||
# define EVP_PKEY_CTRL_EC_PARAM_ENC (EVP_PKEY_ALG_CTRL + 2)
|
||||
# define EVP_PKEY_CTRL_EC_ECDH_COFACTOR (EVP_PKEY_ALG_CTRL + 3)
|
||||
# define EVP_PKEY_CTRL_EC_KDF_TYPE (EVP_PKEY_ALG_CTRL + 4)
|
||||
# define EVP_PKEY_CTRL_EC_KDF_MD (EVP_PKEY_ALG_CTRL + 5)
|
||||
# define EVP_PKEY_CTRL_GET_EC_KDF_MD (EVP_PKEY_ALG_CTRL + 6)
|
||||
# define EVP_PKEY_CTRL_EC_KDF_OUTLEN (EVP_PKEY_ALG_CTRL + 7)
|
||||
# define EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN (EVP_PKEY_ALG_CTRL + 8)
|
||||
# define EVP_PKEY_CTRL_EC_KDF_UKM (EVP_PKEY_ALG_CTRL + 9)
|
||||
# define EVP_PKEY_CTRL_GET_EC_KDF_UKM (EVP_PKEY_ALG_CTRL + 10)
|
||||
# define EVP_PKEY_CTRL_SET1_ID (EVP_PKEY_ALG_CTRL + 11)
|
||||
# define EVP_PKEY_CTRL_GET1_ID (EVP_PKEY_ALG_CTRL + 12)
|
||||
# define EVP_PKEY_CTRL_GET1_ID_LEN (EVP_PKEY_ALG_CTRL + 13)
|
||||
/* KDF types */
|
||||
# define EVP_PKEY_ECDH_KDF_NONE 1
|
||||
# define EVP_PKEY_ECDH_KDF_X9_63 2
|
||||
# define EVP_PKEY_ECDH_KDF_NONE 1
|
||||
# define EVP_PKEY_ECDH_KDF_X9_63 2
|
||||
/** The old name for EVP_PKEY_ECDH_KDF_X9_63
|
||||
* The ECDH KDF specification has been mistakingly attributed to ANSI X9.62,
|
||||
* it is actually specified in ANSI X9.63.
|
||||
* This identifier is retained for backwards compatibility
|
||||
*/
|
||||
# define EVP_PKEY_ECDH_KDF_X9_62 EVP_PKEY_ECDH_KDF_X9_63
|
||||
|
||||
# define EVP_PKEY_ECDH_KDF_X9_62 EVP_PKEY_ECDH_KDF_X9_63
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -113,6 +113,7 @@ struct err_state_st {
|
||||
# define ERR_LIB_PROV 57
|
||||
# define ERR_LIB_CMP 58
|
||||
# define ERR_LIB_OSSL_SERIALIZER 59
|
||||
# define ERR_LIB_HTTP 60
|
||||
|
||||
# define ERR_LIB_USER 128
|
||||
|
||||
@@ -140,6 +141,7 @@ struct err_state_st {
|
||||
# define EVPerr(f, r) ERR_raise_data(ERR_LIB_EVP, (r), NULL)
|
||||
# define FIPSerr(f, r) ERR_raise_data(ERR_LIB_FIPS, (r), NULL)
|
||||
# define HMACerr(f, r) ERR_raise_data(ERR_LIB_HMAC, (r), NULL)
|
||||
# define HTTPerr(f, r) ERR_raise_data(ERR_LIB_HTTP, (r), NULL)
|
||||
# define KDFerr(f, r) ERR_raise_data(ERR_LIB_KDF, (r), NULL)
|
||||
# define OBJerr(f, r) ERR_raise_data(ERR_LIB_OBJ, (r), NULL)
|
||||
# define OCSPerr(f, r) ERR_raise_data(ERR_LIB_OCSP, (r), NULL)
|
||||
|
||||
+12
-7
@@ -1090,12 +1090,13 @@ void EVP_MAC_names_do_all(const EVP_MAC *mac,
|
||||
void *data);
|
||||
|
||||
/* PKEY stuff */
|
||||
int EVP_PKEY_decrypt_old(unsigned char *dec_key,
|
||||
const unsigned char *enc_key, int enc_key_len,
|
||||
EVP_PKEY *private_key);
|
||||
int EVP_PKEY_encrypt_old(unsigned char *enc_key,
|
||||
const unsigned char *key, int key_len,
|
||||
EVP_PKEY *pub_key);
|
||||
DEPRECATEDIN_3_0(int EVP_PKEY_decrypt_old(unsigned char *dec_key,
|
||||
const unsigned char *enc_key,
|
||||
int enc_key_len,
|
||||
EVP_PKEY *private_key))
|
||||
DEPRECATEDIN_3_0(int EVP_PKEY_encrypt_old(unsigned char *enc_key,
|
||||
const unsigned char *key,
|
||||
int key_len, EVP_PKEY *pub_key))
|
||||
int EVP_PKEY_type(int type);
|
||||
int EVP_PKEY_id(const EVP_PKEY *pkey);
|
||||
int EVP_PKEY_base_id(const EVP_PKEY *pkey);
|
||||
@@ -1179,6 +1180,8 @@ int EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey,
|
||||
int indent, ASN1_PCTX *pctx);
|
||||
|
||||
int EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid);
|
||||
int EVP_PKEY_get_default_digest_name(EVP_PKEY *pkey,
|
||||
char *mdname, size_t mdname_sz);
|
||||
int EVP_PKEY_supports_digest_nid(EVP_PKEY *pkey, int nid);
|
||||
|
||||
int EVP_PKEY_set1_tls_encodedpoint(EVP_PKEY *pkey,
|
||||
@@ -1471,7 +1474,7 @@ EVP_PKEY_CTX *EVP_PKEY_CTX_new_from_name(OPENSSL_CTX *libctx,
|
||||
const char *name,
|
||||
const char *propquery);
|
||||
EVP_PKEY_CTX *EVP_PKEY_CTX_new_from_pkey(OPENSSL_CTX *libctx,
|
||||
EVP_PKEY *pkey);
|
||||
EVP_PKEY *pkey, const char *propquery);
|
||||
EVP_PKEY_CTX *EVP_PKEY_CTX_dup(const EVP_PKEY_CTX *ctx);
|
||||
void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx);
|
||||
|
||||
@@ -1588,6 +1591,8 @@ int EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);
|
||||
int EVP_PKEY_check(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_public_check(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_param_check(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_private_check(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_pairwise_check(EVP_PKEY_CTX *ctx);
|
||||
|
||||
void EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb);
|
||||
EVP_PKEY_gen_cb *EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx);
|
||||
|
||||
@@ -1,1862 +0,0 @@
|
||||
/*
|
||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#ifndef OPENSSL_EVP_H
|
||||
# define OPENSSL_EVP_H
|
||||
# pragma once
|
||||
|
||||
# include <openssl/macros.h>
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
# define HEADER_ENVELOPE_H
|
||||
# endif
|
||||
|
||||
# include <stdarg.h>
|
||||
|
||||
# include <openssl/opensslconf.h>
|
||||
# include <openssl/types.h>
|
||||
# include <openssl/core.h>
|
||||
# include <openssl/symhacks.h>
|
||||
# include <openssl/bio.h>
|
||||
# include <openssl/evperr.h>
|
||||
# include <openssl/params.h>
|
||||
|
||||
# define EVP_MAX_MD_SIZE 64/* longest known is SHA512 */
|
||||
# define EVP_MAX_KEY_LENGTH 64
|
||||
# define EVP_MAX_IV_LENGTH 16
|
||||
# define EVP_MAX_BLOCK_LENGTH 32
|
||||
|
||||
# define PKCS5_SALT_LEN 8
|
||||
/* Default PKCS#5 iteration count */
|
||||
# define PKCS5_DEFAULT_ITER 2048
|
||||
|
||||
# include <openssl/objects.h>
|
||||
|
||||
# define EVP_PK_RSA 0x0001
|
||||
# define EVP_PK_DSA 0x0002
|
||||
# define EVP_PK_DH 0x0004
|
||||
# define EVP_PK_EC 0x0008
|
||||
# define EVP_PKT_SIGN 0x0010
|
||||
# define EVP_PKT_ENC 0x0020
|
||||
# define EVP_PKT_EXCH 0x0040
|
||||
# define EVP_PKS_RSA 0x0100
|
||||
# define EVP_PKS_DSA 0x0200
|
||||
# define EVP_PKS_EC 0x0400
|
||||
|
||||
# define EVP_PKEY_NONE NID_undef
|
||||
# define EVP_PKEY_RSA NID_rsaEncryption
|
||||
# define EVP_PKEY_RSA2 NID_rsa
|
||||
# define EVP_PKEY_RSA_PSS NID_rsassaPss
|
||||
# define EVP_PKEY_DSA NID_dsa
|
||||
# define EVP_PKEY_DSA1 NID_dsa_2
|
||||
# define EVP_PKEY_DSA2 NID_dsaWithSHA
|
||||
# define EVP_PKEY_DSA3 NID_dsaWithSHA1
|
||||
# define EVP_PKEY_DSA4 NID_dsaWithSHA1_2
|
||||
# define EVP_PKEY_DH NID_dhKeyAgreement
|
||||
# define EVP_PKEY_DHX NID_dhpublicnumber
|
||||
# define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
|
||||
# define EVP_PKEY_SM2 NID_sm2
|
||||
# define EVP_PKEY_HMAC NID_hmac
|
||||
# define EVP_PKEY_CMAC NID_cmac
|
||||
# define EVP_PKEY_SCRYPT NID_id_scrypt
|
||||
# define EVP_PKEY_TLS1_PRF NID_tls1_prf
|
||||
# define EVP_PKEY_HKDF NID_hkdf
|
||||
# define EVP_PKEY_POLY1305 NID_poly1305
|
||||
# define EVP_PKEY_SIPHASH NID_siphash
|
||||
# define EVP_PKEY_X25519 NID_X25519
|
||||
# define EVP_PKEY_ED25519 NID_ED25519
|
||||
# define EVP_PKEY_X448 NID_X448
|
||||
# define EVP_PKEY_ED448 NID_ED448
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int EVP_set_default_properties(OPENSSL_CTX *libctx, const char *propq);
|
||||
|
||||
# define EVP_PKEY_MO_SIGN 0x0001
|
||||
# define EVP_PKEY_MO_VERIFY 0x0002
|
||||
# define EVP_PKEY_MO_ENCRYPT 0x0004
|
||||
# define EVP_PKEY_MO_DECRYPT 0x0008
|
||||
|
||||
# ifndef EVP_MD
|
||||
EVP_MD *EVP_MD_meth_new(int md_type, int pkey_type);
|
||||
EVP_MD *EVP_MD_meth_dup(const EVP_MD *md);
|
||||
void EVP_MD_meth_free(EVP_MD *md);
|
||||
|
||||
int EVP_MD_meth_set_input_blocksize(EVP_MD *md, int blocksize);
|
||||
int EVP_MD_meth_set_result_size(EVP_MD *md, int resultsize);
|
||||
int EVP_MD_meth_set_app_datasize(EVP_MD *md, int datasize);
|
||||
int EVP_MD_meth_set_flags(EVP_MD *md, unsigned long flags);
|
||||
int EVP_MD_meth_set_init(EVP_MD *md, int (*init)(EVP_MD_CTX *ctx));
|
||||
int EVP_MD_meth_set_update(EVP_MD *md, int (*update)(EVP_MD_CTX *ctx,
|
||||
const void *data,
|
||||
size_t count));
|
||||
int EVP_MD_meth_set_final(EVP_MD *md, int (*final)(EVP_MD_CTX *ctx,
|
||||
unsigned char *md));
|
||||
int EVP_MD_meth_set_copy(EVP_MD *md, int (*copy)(EVP_MD_CTX *to,
|
||||
const EVP_MD_CTX *from));
|
||||
int EVP_MD_meth_set_cleanup(EVP_MD *md, int (*cleanup)(EVP_MD_CTX *ctx));
|
||||
int EVP_MD_meth_set_ctrl(EVP_MD *md, int (*ctrl)(EVP_MD_CTX *ctx, int cmd,
|
||||
int p1, void *p2));
|
||||
|
||||
int EVP_MD_meth_get_input_blocksize(const EVP_MD *md);
|
||||
int EVP_MD_meth_get_result_size(const EVP_MD *md);
|
||||
int EVP_MD_meth_get_app_datasize(const EVP_MD *md);
|
||||
unsigned long EVP_MD_meth_get_flags(const EVP_MD *md);
|
||||
int (*EVP_MD_meth_get_init(const EVP_MD *md))(EVP_MD_CTX *ctx);
|
||||
int (*EVP_MD_meth_get_update(const EVP_MD *md))(EVP_MD_CTX *ctx,
|
||||
const void *data,
|
||||
size_t count);
|
||||
int (*EVP_MD_meth_get_final(const EVP_MD *md))(EVP_MD_CTX *ctx,
|
||||
unsigned char *md);
|
||||
int (*EVP_MD_meth_get_copy(const EVP_MD *md))(EVP_MD_CTX *to,
|
||||
const EVP_MD_CTX *from);
|
||||
int (*EVP_MD_meth_get_cleanup(const EVP_MD *md))(EVP_MD_CTX *ctx);
|
||||
int (*EVP_MD_meth_get_ctrl(const EVP_MD *md))(EVP_MD_CTX *ctx, int cmd,
|
||||
int p1, void *p2);
|
||||
|
||||
/* digest can only handle a single block */
|
||||
# define EVP_MD_FLAG_ONESHOT 0x0001
|
||||
|
||||
/* digest is extensible-output function, XOF */
|
||||
# define EVP_MD_FLAG_XOF 0x0002
|
||||
|
||||
/* DigestAlgorithmIdentifier flags... */
|
||||
|
||||
# define EVP_MD_FLAG_DIGALGID_MASK 0x0018
|
||||
|
||||
/* NULL or absent parameter accepted. Use NULL */
|
||||
|
||||
# define EVP_MD_FLAG_DIGALGID_NULL 0x0000
|
||||
|
||||
/* NULL or absent parameter accepted. Use NULL for PKCS#1 otherwise absent */
|
||||
|
||||
# define EVP_MD_FLAG_DIGALGID_ABSENT 0x0008
|
||||
|
||||
/* Custom handling via ctrl */
|
||||
|
||||
# define EVP_MD_FLAG_DIGALGID_CUSTOM 0x0018
|
||||
|
||||
/* Note if suitable for use in FIPS mode */
|
||||
# define EVP_MD_FLAG_FIPS 0x0400
|
||||
|
||||
/* Digest ctrls */
|
||||
|
||||
# define EVP_MD_CTRL_DIGALGID 0x1
|
||||
# define EVP_MD_CTRL_MICALG 0x2
|
||||
# define EVP_MD_CTRL_XOF_LEN 0x3
|
||||
|
||||
/* Minimum Algorithm specific ctrl value */
|
||||
|
||||
# define EVP_MD_CTRL_ALG_CTRL 0x1000
|
||||
|
||||
# endif /* !EVP_MD */
|
||||
|
||||
/* values for EVP_MD_CTX flags */
|
||||
|
||||
# define EVP_MD_CTX_FLAG_ONESHOT 0x0001/* digest update will be
|
||||
* called once only */
|
||||
# define EVP_MD_CTX_FLAG_CLEANED 0x0002/* context has already been
|
||||
* cleaned */
|
||||
# define EVP_MD_CTX_FLAG_REUSE 0x0004/* Don't free up ctx->md_data
|
||||
* in EVP_MD_CTX_reset */
|
||||
/*
|
||||
* FIPS and pad options are ignored in 1.0.0, definitions are here so we
|
||||
* don't accidentally reuse the values for other purposes.
|
||||
*/
|
||||
|
||||
# define EVP_MD_CTX_FLAG_NON_FIPS_ALLOW 0x0008/* Allow use of non FIPS
|
||||
* digest in FIPS mode */
|
||||
|
||||
/*
|
||||
* The following PAD options are also currently ignored in 1.0.0, digest
|
||||
* parameters are handled through EVP_DigestSign*() and EVP_DigestVerify*()
|
||||
* instead.
|
||||
*/
|
||||
# define EVP_MD_CTX_FLAG_PAD_MASK 0xF0/* RSA mode to use */
|
||||
# define EVP_MD_CTX_FLAG_PAD_PKCS1 0x00/* PKCS#1 v1.5 mode */
|
||||
# define EVP_MD_CTX_FLAG_PAD_X931 0x10/* X9.31 mode */
|
||||
# define EVP_MD_CTX_FLAG_PAD_PSS 0x20/* PSS mode */
|
||||
|
||||
# define EVP_MD_CTX_FLAG_NO_INIT 0x0100/* Don't initialize md_data */
|
||||
/*
|
||||
* Some functions such as EVP_DigestSign only finalise copies of internal
|
||||
* contexts so additional data can be included after the finalisation call.
|
||||
* This is inefficient if this functionality is not required: it is disabled
|
||||
* if the following flag is set.
|
||||
*/
|
||||
# define EVP_MD_CTX_FLAG_FINALISE 0x0200
|
||||
/* NOTE: 0x0400 is reserved for internal usage */
|
||||
|
||||
EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);
|
||||
EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher);
|
||||
void EVP_CIPHER_meth_free(EVP_CIPHER *cipher);
|
||||
|
||||
int EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len);
|
||||
int EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags);
|
||||
int EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size);
|
||||
int EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher,
|
||||
int (*init) (EVP_CIPHER_CTX *ctx,
|
||||
const unsigned char *key,
|
||||
const unsigned char *iv,
|
||||
int enc));
|
||||
int EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher,
|
||||
int (*do_cipher) (EVP_CIPHER_CTX *ctx,
|
||||
unsigned char *out,
|
||||
const unsigned char *in,
|
||||
size_t inl));
|
||||
int EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher,
|
||||
int (*cleanup) (EVP_CIPHER_CTX *));
|
||||
int EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher,
|
||||
int (*set_asn1_parameters) (EVP_CIPHER_CTX *,
|
||||
ASN1_TYPE *));
|
||||
int EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher,
|
||||
int (*get_asn1_parameters) (EVP_CIPHER_CTX *,
|
||||
ASN1_TYPE *));
|
||||
int EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher,
|
||||
int (*ctrl) (EVP_CIPHER_CTX *, int type,
|
||||
int arg, void *ptr));
|
||||
|
||||
int (*EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,
|
||||
const unsigned char *key,
|
||||
const unsigned char *iv,
|
||||
int enc);
|
||||
int (*EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,
|
||||
unsigned char *out,
|
||||
const unsigned char *in,
|
||||
size_t inl);
|
||||
int (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *);
|
||||
int (*EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
|
||||
ASN1_TYPE *);
|
||||
int (*EVP_CIPHER_meth_get_get_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
|
||||
ASN1_TYPE *);
|
||||
int (*EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
|
||||
int type, int arg,
|
||||
void *ptr);
|
||||
|
||||
/* Values for cipher flags */
|
||||
|
||||
/* Modes for ciphers */
|
||||
|
||||
# define EVP_CIPH_STREAM_CIPHER 0x0
|
||||
# define EVP_CIPH_ECB_MODE 0x1
|
||||
# define EVP_CIPH_CBC_MODE 0x2
|
||||
# define EVP_CIPH_CFB_MODE 0x3
|
||||
# define EVP_CIPH_OFB_MODE 0x4
|
||||
# define EVP_CIPH_CTR_MODE 0x5
|
||||
# define EVP_CIPH_GCM_MODE 0x6
|
||||
# define EVP_CIPH_CCM_MODE 0x7
|
||||
# define EVP_CIPH_XTS_MODE 0x10001
|
||||
# define EVP_CIPH_WRAP_MODE 0x10002
|
||||
# define EVP_CIPH_OCB_MODE 0x10003
|
||||
# define EVP_CIPH_SIV_MODE 0x10004
|
||||
# define EVP_CIPH_MODE 0xF0007
|
||||
/* Set if variable length cipher */
|
||||
# define EVP_CIPH_VARIABLE_LENGTH 0x8
|
||||
/* Set if the iv handling should be done by the cipher itself */
|
||||
# define EVP_CIPH_CUSTOM_IV 0x10
|
||||
/* Set if the cipher's init() function should be called if key is NULL */
|
||||
# define EVP_CIPH_ALWAYS_CALL_INIT 0x20
|
||||
/* Call ctrl() to init cipher parameters */
|
||||
# define EVP_CIPH_CTRL_INIT 0x40
|
||||
/* Don't use standard key length function */
|
||||
# define EVP_CIPH_CUSTOM_KEY_LENGTH 0x80
|
||||
/* Don't use standard block padding */
|
||||
# define EVP_CIPH_NO_PADDING 0x100
|
||||
/* cipher handles random key generation */
|
||||
# define EVP_CIPH_RAND_KEY 0x200
|
||||
/* cipher has its own additional copying logic */
|
||||
# define EVP_CIPH_CUSTOM_COPY 0x400
|
||||
/* Don't use standard iv length function */
|
||||
# define EVP_CIPH_CUSTOM_IV_LENGTH 0x800
|
||||
/* Legacy and no longer relevant: Allow use default ASN1 get/set iv */
|
||||
# define EVP_CIPH_FLAG_DEFAULT_ASN1 0
|
||||
/* Free: 0x1000 */
|
||||
/* Buffer length in bits not bytes: CFB1 mode only */
|
||||
# define EVP_CIPH_FLAG_LENGTH_BITS 0x2000
|
||||
/* Note if suitable for use in FIPS mode */
|
||||
# define EVP_CIPH_FLAG_FIPS 0x4000
|
||||
/* Allow non FIPS cipher in FIPS mode */
|
||||
# define EVP_CIPH_FLAG_NON_FIPS_ALLOW 0x8000
|
||||
/*
|
||||
* Cipher handles any and all padding logic as well as finalisation.
|
||||
*/
|
||||
# define EVP_CIPH_FLAG_CUSTOM_CIPHER 0x100000
|
||||
# define EVP_CIPH_FLAG_AEAD_CIPHER 0x200000
|
||||
# define EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK 0x400000
|
||||
/* Cipher can handle pipeline operations */
|
||||
# define EVP_CIPH_FLAG_PIPELINE 0X800000
|
||||
/* For provider implementations that handle ASN1 get/set param themselves */
|
||||
# define EVP_CIPH_FLAG_CUSTOM_ASN1 0x1000000
|
||||
|
||||
/*
|
||||
* Cipher context flag to indicate we can handle wrap mode: if allowed in
|
||||
* older applications it could overflow buffers.
|
||||
*/
|
||||
|
||||
# define EVP_CIPHER_CTX_FLAG_WRAP_ALLOW 0x1
|
||||
|
||||
/* ctrl() values */
|
||||
|
||||
# define EVP_CTRL_INIT 0x0
|
||||
# define EVP_CTRL_SET_KEY_LENGTH 0x1
|
||||
# define EVP_CTRL_GET_RC2_KEY_BITS 0x2
|
||||
# define EVP_CTRL_SET_RC2_KEY_BITS 0x3
|
||||
# define EVP_CTRL_GET_RC5_ROUNDS 0x4
|
||||
# define EVP_CTRL_SET_RC5_ROUNDS 0x5
|
||||
# define EVP_CTRL_RAND_KEY 0x6
|
||||
# define EVP_CTRL_PBE_PRF_NID 0x7
|
||||
# define EVP_CTRL_COPY 0x8
|
||||
# define EVP_CTRL_AEAD_SET_IVLEN 0x9
|
||||
# define EVP_CTRL_AEAD_GET_TAG 0x10
|
||||
# define EVP_CTRL_AEAD_SET_TAG 0x11
|
||||
# define EVP_CTRL_AEAD_SET_IV_FIXED 0x12
|
||||
# define EVP_CTRL_GCM_SET_IVLEN EVP_CTRL_AEAD_SET_IVLEN
|
||||
# define EVP_CTRL_GCM_GET_TAG EVP_CTRL_AEAD_GET_TAG
|
||||
# define EVP_CTRL_GCM_SET_TAG EVP_CTRL_AEAD_SET_TAG
|
||||
# define EVP_CTRL_GCM_SET_IV_FIXED EVP_CTRL_AEAD_SET_IV_FIXED
|
||||
# define EVP_CTRL_GCM_IV_GEN 0x13
|
||||
# define EVP_CTRL_CCM_SET_IVLEN EVP_CTRL_AEAD_SET_IVLEN
|
||||
# define EVP_CTRL_CCM_GET_TAG EVP_CTRL_AEAD_GET_TAG
|
||||
# define EVP_CTRL_CCM_SET_TAG EVP_CTRL_AEAD_SET_TAG
|
||||
# define EVP_CTRL_CCM_SET_IV_FIXED EVP_CTRL_AEAD_SET_IV_FIXED
|
||||
# define EVP_CTRL_CCM_SET_L 0x14
|
||||
# define EVP_CTRL_CCM_SET_MSGLEN 0x15
|
||||
/*
|
||||
* AEAD cipher deduces payload length and returns number of bytes required to
|
||||
* store MAC and eventual padding. Subsequent call to EVP_Cipher even
|
||||
* appends/verifies MAC.
|
||||
*/
|
||||
# define EVP_CTRL_AEAD_TLS1_AAD 0x16
|
||||
/* Used by composite AEAD ciphers, no-op in GCM, CCM... */
|
||||
# define EVP_CTRL_AEAD_SET_MAC_KEY 0x17
|
||||
/* Set the GCM invocation field, decrypt only */
|
||||
# define EVP_CTRL_GCM_SET_IV_INV 0x18
|
||||
|
||||
# define EVP_CTRL_TLS1_1_MULTIBLOCK_AAD 0x19
|
||||
# define EVP_CTRL_TLS1_1_MULTIBLOCK_ENCRYPT 0x1a
|
||||
# define EVP_CTRL_TLS1_1_MULTIBLOCK_DECRYPT 0x1b
|
||||
# define EVP_CTRL_TLS1_1_MULTIBLOCK_MAX_BUFSIZE 0x1c
|
||||
|
||||
# define EVP_CTRL_SSL3_MASTER_SECRET 0x1d
|
||||
|
||||
/* EVP_CTRL_SET_SBOX takes the char * specifying S-boxes */
|
||||
# define EVP_CTRL_SET_SBOX 0x1e
|
||||
/*
|
||||
* EVP_CTRL_SBOX_USED takes a 'size_t' and 'char *', pointing at a
|
||||
* pre-allocated buffer with specified size
|
||||
*/
|
||||
# define EVP_CTRL_SBOX_USED 0x1f
|
||||
/* EVP_CTRL_KEY_MESH takes 'size_t' number of bytes to mesh the key after,
|
||||
* 0 switches meshing off
|
||||
*/
|
||||
# define EVP_CTRL_KEY_MESH 0x20
|
||||
/* EVP_CTRL_BLOCK_PADDING_MODE takes the padding mode */
|
||||
# define EVP_CTRL_BLOCK_PADDING_MODE 0x21
|
||||
|
||||
/* Set the output buffers to use for a pipelined operation */
|
||||
# define EVP_CTRL_SET_PIPELINE_OUTPUT_BUFS 0x22
|
||||
/* Set the input buffers to use for a pipelined operation */
|
||||
# define EVP_CTRL_SET_PIPELINE_INPUT_BUFS 0x23
|
||||
/* Set the input buffer lengths to use for a pipelined operation */
|
||||
# define EVP_CTRL_SET_PIPELINE_INPUT_LENS 0x24
|
||||
/* Get the IV length used by the cipher */
|
||||
# define EVP_CTRL_GET_IVLEN 0x25
|
||||
/* Get the IV used by the cipher */
|
||||
# define EVP_CTRL_GET_IV 0x26
|
||||
/* Tell the cipher it's doing a speed test (SIV disallows multiple ops) */
|
||||
# define EVP_CTRL_SET_SPEED 0x27
|
||||
|
||||
/* Padding modes */
|
||||
#define EVP_PADDING_PKCS7 1
|
||||
#define EVP_PADDING_ISO7816_4 2
|
||||
#define EVP_PADDING_ANSI923 3
|
||||
#define EVP_PADDING_ISO10126 4
|
||||
#define EVP_PADDING_ZERO 5
|
||||
|
||||
/* RFC 5246 defines additional data to be 13 bytes in length */
|
||||
# define EVP_AEAD_TLS1_AAD_LEN 13
|
||||
|
||||
typedef struct {
|
||||
unsigned char *out;
|
||||
const unsigned char *inp;
|
||||
size_t len;
|
||||
unsigned int interleave;
|
||||
} EVP_CTRL_TLS1_1_MULTIBLOCK_PARAM;
|
||||
|
||||
/* GCM TLS constants */
|
||||
/* Length of fixed part of IV derived from PRF */
|
||||
# define EVP_GCM_TLS_FIXED_IV_LEN 4
|
||||
/* Length of explicit part of IV part of TLS records */
|
||||
# define EVP_GCM_TLS_EXPLICIT_IV_LEN 8
|
||||
/* Length of tag for TLS */
|
||||
# define EVP_GCM_TLS_TAG_LEN 16
|
||||
|
||||
/* CCM TLS constants */
|
||||
/* Length of fixed part of IV derived from PRF */
|
||||
# define EVP_CCM_TLS_FIXED_IV_LEN 4
|
||||
/* Length of explicit part of IV part of TLS records */
|
||||
# define EVP_CCM_TLS_EXPLICIT_IV_LEN 8
|
||||
/* Total length of CCM IV length for TLS */
|
||||
# define EVP_CCM_TLS_IV_LEN 12
|
||||
/* Length of tag for TLS */
|
||||
# define EVP_CCM_TLS_TAG_LEN 16
|
||||
/* Length of CCM8 tag for TLS */
|
||||
# define EVP_CCM8_TLS_TAG_LEN 8
|
||||
|
||||
/* Length of tag for TLS */
|
||||
# define EVP_CHACHAPOLY_TLS_TAG_LEN 16
|
||||
|
||||
typedef struct evp_cipher_info_st {
|
||||
const EVP_CIPHER *cipher;
|
||||
unsigned char iv[EVP_MAX_IV_LENGTH];
|
||||
} EVP_CIPHER_INFO;
|
||||
|
||||
|
||||
/* Password based encryption function */
|
||||
typedef int (EVP_PBE_KEYGEN) (EVP_CIPHER_CTX *ctx, const char *pass,
|
||||
int passlen, ASN1_TYPE *param,
|
||||
const EVP_CIPHER *cipher, const EVP_MD *md,
|
||||
int en_de);
|
||||
|
||||
# ifndef OPENSSL_NO_RSA
|
||||
# define EVP_PKEY_assign_RSA(pkey,rsa) EVP_PKEY_assign((pkey),EVP_PKEY_RSA,\
|
||||
(rsa))
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_DSA
|
||||
# define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA,\
|
||||
(dsa))
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_DH
|
||||
# define EVP_PKEY_assign_DH(pkey,dh) EVP_PKEY_assign((pkey),EVP_PKEY_DH,(dh))
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_EC
|
||||
# define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\
|
||||
(eckey))
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_SIPHASH
|
||||
# define EVP_PKEY_assign_SIPHASH(pkey,shkey) EVP_PKEY_assign((pkey),\
|
||||
EVP_PKEY_SIPHASH,(shkey))
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_POLY1305
|
||||
# define EVP_PKEY_assign_POLY1305(pkey,polykey) EVP_PKEY_assign((pkey),\
|
||||
EVP_PKEY_POLY1305,(polykey))
|
||||
# endif
|
||||
|
||||
/* Add some extra combinations */
|
||||
# define EVP_get_digestbynid(a) EVP_get_digestbyname(OBJ_nid2sn(a))
|
||||
# define EVP_get_digestbyobj(a) EVP_get_digestbynid(OBJ_obj2nid(a))
|
||||
# define EVP_get_cipherbynid(a) EVP_get_cipherbyname(OBJ_nid2sn(a))
|
||||
# define EVP_get_cipherbyobj(a) EVP_get_cipherbynid(OBJ_obj2nid(a))
|
||||
|
||||
int EVP_MD_type(const EVP_MD *md);
|
||||
# define EVP_MD_nid(e) EVP_MD_type(e)
|
||||
const char *EVP_MD_name(const EVP_MD *md);
|
||||
int EVP_MD_number(const EVP_MD *md);
|
||||
int EVP_MD_is_a(const EVP_MD *md, const char *name);
|
||||
void EVP_MD_names_do_all(const EVP_MD *md,
|
||||
void (*fn)(const char *name, void *data),
|
||||
void *data);
|
||||
const OSSL_PROVIDER *EVP_MD_provider(const EVP_MD *md);
|
||||
int EVP_MD_pkey_type(const EVP_MD *md);
|
||||
int EVP_MD_size(const EVP_MD *md);
|
||||
int EVP_MD_block_size(const EVP_MD *md);
|
||||
unsigned long EVP_MD_flags(const EVP_MD *md);
|
||||
|
||||
const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx);
|
||||
int (*EVP_MD_CTX_update_fn(EVP_MD_CTX *ctx))(EVP_MD_CTX *ctx,
|
||||
const void *data, size_t count);
|
||||
void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx,
|
||||
int (*update) (EVP_MD_CTX *ctx,
|
||||
const void *data, size_t count));
|
||||
# define EVP_MD_CTX_name(e) EVP_MD_name(EVP_MD_CTX_md(e))
|
||||
# define EVP_MD_CTX_size(e) EVP_MD_size(EVP_MD_CTX_md(e))
|
||||
# define EVP_MD_CTX_block_size(e) EVP_MD_block_size(EVP_MD_CTX_md(e))
|
||||
# define EVP_MD_CTX_type(e) EVP_MD_type(EVP_MD_CTX_md(e))
|
||||
EVP_PKEY_CTX *EVP_MD_CTX_pkey_ctx(const EVP_MD_CTX *ctx);
|
||||
void EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx);
|
||||
void *EVP_MD_CTX_md_data(const EVP_MD_CTX *ctx);
|
||||
|
||||
int EVP_CIPHER_nid(const EVP_CIPHER *cipher);
|
||||
const char *EVP_CIPHER_name(const EVP_CIPHER *cipher);
|
||||
int EVP_CIPHER_number(const EVP_CIPHER *cipher);
|
||||
int EVP_CIPHER_is_a(const EVP_CIPHER *cipher, const char *name);
|
||||
void EVP_CIPHER_names_do_all(const EVP_CIPHER *cipher,
|
||||
void (*fn)(const char *name, void *data),
|
||||
void *data);
|
||||
const OSSL_PROVIDER *EVP_CIPHER_provider(const EVP_CIPHER *cipher);
|
||||
int EVP_CIPHER_block_size(const EVP_CIPHER *cipher);
|
||||
int EVP_CIPHER_impl_ctx_size(const EVP_CIPHER *cipher);
|
||||
int EVP_CIPHER_key_length(const EVP_CIPHER *cipher);
|
||||
int EVP_CIPHER_iv_length(const EVP_CIPHER *cipher);
|
||||
unsigned long EVP_CIPHER_flags(const EVP_CIPHER *cipher);
|
||||
int EVP_CIPHER_mode(const EVP_CIPHER *cipher);
|
||||
EVP_CIPHER *EVP_CIPHER_fetch(OPENSSL_CTX *ctx, const char *algorithm,
|
||||
const char *properties);
|
||||
int EVP_CIPHER_up_ref(EVP_CIPHER *cipher);
|
||||
void EVP_CIPHER_free(EVP_CIPHER *cipher);
|
||||
|
||||
const EVP_CIPHER *EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx);
|
||||
int EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx);
|
||||
int EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx);
|
||||
int EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx);
|
||||
int EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx);
|
||||
int EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx);
|
||||
int EVP_CIPHER_CTX_tag_length(const EVP_CIPHER_CTX *ctx);
|
||||
const unsigned char *EVP_CIPHER_CTX_iv(const EVP_CIPHER_CTX *ctx);
|
||||
const unsigned char *EVP_CIPHER_CTX_original_iv(const EVP_CIPHER_CTX *ctx);
|
||||
unsigned char *EVP_CIPHER_CTX_iv_noconst(EVP_CIPHER_CTX *ctx);
|
||||
unsigned char *EVP_CIPHER_CTX_buf_noconst(EVP_CIPHER_CTX *ctx);
|
||||
int EVP_CIPHER_CTX_num(const EVP_CIPHER_CTX *ctx);
|
||||
int EVP_CIPHER_CTX_set_num(EVP_CIPHER_CTX *ctx, int num);
|
||||
int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in);
|
||||
void *EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx);
|
||||
void EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data);
|
||||
void *EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx);
|
||||
void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);
|
||||
# define EVP_CIPHER_CTX_name(c) EVP_CIPHER_name(EVP_CIPHER_CTX_cipher(c))
|
||||
# define EVP_CIPHER_CTX_type(c) EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c))
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# define EVP_CIPHER_CTX_flags(c) EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(c))
|
||||
# endif
|
||||
# define EVP_CIPHER_CTX_mode(c) EVP_CIPHER_mode(EVP_CIPHER_CTX_cipher(c))
|
||||
|
||||
# define EVP_ENCODE_LENGTH(l) ((((l)+2)/3*4)+((l)/48+1)*2+80)
|
||||
# define EVP_DECODE_LENGTH(l) (((l)+3)/4*3+80)
|
||||
|
||||
# define EVP_SignInit_ex(a,b,c) EVP_DigestInit_ex(a,b,c)
|
||||
# define EVP_SignInit(a,b) EVP_DigestInit(a,b)
|
||||
# define EVP_SignUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
|
||||
# define EVP_VerifyInit_ex(a,b,c) EVP_DigestInit_ex(a,b,c)
|
||||
# define EVP_VerifyInit(a,b) EVP_DigestInit(a,b)
|
||||
# define EVP_VerifyUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
|
||||
# define EVP_OpenUpdate(a,b,c,d,e) EVP_DecryptUpdate(a,b,c,d,e)
|
||||
# define EVP_SealUpdate(a,b,c,d,e) EVP_EncryptUpdate(a,b,c,d,e)
|
||||
|
||||
# ifdef CONST_STRICT
|
||||
void BIO_set_md(BIO *, const EVP_MD *md);
|
||||
# else
|
||||
# define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,0,(void *)(md))
|
||||
# endif
|
||||
# define BIO_get_md(b,mdp) BIO_ctrl(b,BIO_C_GET_MD,0,(mdp))
|
||||
# define BIO_get_md_ctx(b,mdcp) BIO_ctrl(b,BIO_C_GET_MD_CTX,0,(mdcp))
|
||||
# define BIO_set_md_ctx(b,mdcp) BIO_ctrl(b,BIO_C_SET_MD_CTX,0,(mdcp))
|
||||
# define BIO_get_cipher_status(b) BIO_ctrl(b,BIO_C_GET_CIPHER_STATUS,0,NULL)
|
||||
# define BIO_get_cipher_ctx(b,c_pp) BIO_ctrl(b,BIO_C_GET_CIPHER_CTX,0,(c_pp))
|
||||
|
||||
/*__owur*/ int EVP_Cipher(EVP_CIPHER_CTX *c,
|
||||
unsigned char *out,
|
||||
const unsigned char *in, unsigned int inl);
|
||||
|
||||
# define EVP_add_cipher_alias(n,alias) \
|
||||
OBJ_NAME_add((alias),OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS,(n))
|
||||
# define EVP_add_digest_alias(n,alias) \
|
||||
OBJ_NAME_add((alias),OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS,(n))
|
||||
# define EVP_delete_cipher_alias(alias) \
|
||||
OBJ_NAME_remove(alias,OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS);
|
||||
# define EVP_delete_digest_alias(alias) \
|
||||
OBJ_NAME_remove(alias,OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS);
|
||||
|
||||
int EVP_MD_get_params(const EVP_MD *digest, OSSL_PARAM params[]);
|
||||
int EVP_MD_CTX_set_params(EVP_MD_CTX *ctx, const OSSL_PARAM params[]);
|
||||
int EVP_MD_CTX_get_params(EVP_MD_CTX *ctx, OSSL_PARAM params[]);
|
||||
const OSSL_PARAM *EVP_MD_gettable_params(const EVP_MD *digest);
|
||||
const OSSL_PARAM *EVP_MD_settable_ctx_params(const EVP_MD *md);
|
||||
const OSSL_PARAM *EVP_MD_gettable_ctx_params(const EVP_MD *md);
|
||||
const OSSL_PARAM *EVP_MD_CTX_settable_params(EVP_MD_CTX *ctx);
|
||||
const OSSL_PARAM *EVP_MD_CTX_gettable_params(EVP_MD_CTX *ctx);
|
||||
int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2);
|
||||
EVP_MD_CTX *EVP_MD_CTX_new(void);
|
||||
int EVP_MD_CTX_reset(EVP_MD_CTX *ctx);
|
||||
void EVP_MD_CTX_free(EVP_MD_CTX *ctx);
|
||||
# define EVP_MD_CTX_create() EVP_MD_CTX_new()
|
||||
# define EVP_MD_CTX_init(ctx) EVP_MD_CTX_reset((ctx))
|
||||
# define EVP_MD_CTX_destroy(ctx) EVP_MD_CTX_free((ctx))
|
||||
__owur int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in);
|
||||
void EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags);
|
||||
void EVP_MD_CTX_clear_flags(EVP_MD_CTX *ctx, int flags);
|
||||
int EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx, int flags);
|
||||
__owur int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type,
|
||||
ENGINE *impl);
|
||||
__owur int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d,
|
||||
size_t cnt);
|
||||
__owur int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md,
|
||||
unsigned int *s);
|
||||
__owur int EVP_Digest(const void *data, size_t count,
|
||||
unsigned char *md, unsigned int *size,
|
||||
const EVP_MD *type, ENGINE *impl);
|
||||
|
||||
__owur int EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in);
|
||||
__owur int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type);
|
||||
__owur int EVP_DigestFinal(EVP_MD_CTX *ctx, unsigned char *md,
|
||||
unsigned int *s);
|
||||
__owur int EVP_DigestFinalXOF(EVP_MD_CTX *ctx, unsigned char *md,
|
||||
size_t len);
|
||||
|
||||
__owur EVP_MD *EVP_MD_fetch(OPENSSL_CTX *ctx, const char *algorithm,
|
||||
const char *properties);
|
||||
int EVP_MD_up_ref(EVP_MD *md);
|
||||
void EVP_MD_free(EVP_MD *md);
|
||||
|
||||
int EVP_read_pw_string(char *buf, int length, const char *prompt, int verify);
|
||||
int EVP_read_pw_string_min(char *buf, int minlen, int maxlen,
|
||||
const char *prompt, int verify);
|
||||
void EVP_set_pw_prompt(const char *prompt);
|
||||
char *EVP_get_pw_prompt(void);
|
||||
|
||||
__owur int EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md,
|
||||
const unsigned char *salt,
|
||||
const unsigned char *data, int datal, int count,
|
||||
unsigned char *key, unsigned char *iv);
|
||||
|
||||
void EVP_CIPHER_CTX_set_flags(EVP_CIPHER_CTX *ctx, int flags);
|
||||
void EVP_CIPHER_CTX_clear_flags(EVP_CIPHER_CTX *ctx, int flags);
|
||||
int EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags);
|
||||
|
||||
__owur int EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
|
||||
const unsigned char *key, const unsigned char *iv);
|
||||
/*__owur*/ int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,
|
||||
const EVP_CIPHER *cipher, ENGINE *impl,
|
||||
const unsigned char *key,
|
||||
const unsigned char *iv);
|
||||
/*__owur*/ int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
||||
int *outl, const unsigned char *in, int inl);
|
||||
/*__owur*/ int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
||||
int *outl);
|
||||
/*__owur*/ int EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
||||
int *outl);
|
||||
|
||||
__owur int EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
|
||||
const unsigned char *key, const unsigned char *iv);
|
||||
/*__owur*/ int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx,
|
||||
const EVP_CIPHER *cipher, ENGINE *impl,
|
||||
const unsigned char *key,
|
||||
const unsigned char *iv);
|
||||
/*__owur*/ int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
||||
int *outl, const unsigned char *in, int inl);
|
||||
__owur int EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm,
|
||||
int *outl);
|
||||
/*__owur*/ int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm,
|
||||
int *outl);
|
||||
|
||||
__owur int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
|
||||
const unsigned char *key, const unsigned char *iv,
|
||||
int enc);
|
||||
/*__owur*/ int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,
|
||||
const EVP_CIPHER *cipher, ENGINE *impl,
|
||||
const unsigned char *key,
|
||||
const unsigned char *iv, int enc);
|
||||
__owur int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
||||
int *outl, const unsigned char *in, int inl);
|
||||
__owur int EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm,
|
||||
int *outl);
|
||||
__owur int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm,
|
||||
int *outl);
|
||||
|
||||
__owur int EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s,
|
||||
EVP_PKEY *pkey);
|
||||
|
||||
__owur int EVP_DigestSign(EVP_MD_CTX *ctx, unsigned char *sigret,
|
||||
size_t *siglen, const unsigned char *tbs,
|
||||
size_t tbslen);
|
||||
|
||||
__owur int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,
|
||||
unsigned int siglen, EVP_PKEY *pkey);
|
||||
|
||||
__owur int EVP_DigestVerify(EVP_MD_CTX *ctx, const unsigned char *sigret,
|
||||
size_t siglen, const unsigned char *tbs,
|
||||
size_t tbslen);
|
||||
|
||||
int EVP_DigestSignInit_ex(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
|
||||
const char *mdname, const char *props,
|
||||
EVP_PKEY *pkey);
|
||||
/*__owur*/ int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
|
||||
const EVP_MD *type, ENGINE *e,
|
||||
EVP_PKEY *pkey);
|
||||
int EVP_DigestSignUpdate(EVP_MD_CTX *ctx, const void *data, size_t dsize);
|
||||
__owur int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,
|
||||
size_t *siglen);
|
||||
|
||||
int EVP_DigestVerifyInit_ex(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
|
||||
const char *mdname, const char *props,
|
||||
EVP_PKEY *pkey);
|
||||
__owur int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
|
||||
const EVP_MD *type, ENGINE *e,
|
||||
EVP_PKEY *pkey);
|
||||
int EVP_DigestVerifyUpdate(EVP_MD_CTX *ctx, const void *data, size_t dsize);
|
||||
__owur int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig,
|
||||
size_t siglen);
|
||||
|
||||
# ifndef OPENSSL_NO_RSA
|
||||
__owur int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,
|
||||
const unsigned char *ek, int ekl,
|
||||
const unsigned char *iv, EVP_PKEY *priv);
|
||||
__owur int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);
|
||||
|
||||
__owur int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,
|
||||
unsigned char **ek, int *ekl, unsigned char *iv,
|
||||
EVP_PKEY **pubk, int npubk);
|
||||
__owur int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);
|
||||
# endif
|
||||
|
||||
EVP_ENCODE_CTX *EVP_ENCODE_CTX_new(void);
|
||||
void EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx);
|
||||
int EVP_ENCODE_CTX_copy(EVP_ENCODE_CTX *dctx, const EVP_ENCODE_CTX *sctx);
|
||||
int EVP_ENCODE_CTX_num(EVP_ENCODE_CTX *ctx);
|
||||
void EVP_EncodeInit(EVP_ENCODE_CTX *ctx);
|
||||
int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
|
||||
const unsigned char *in, int inl);
|
||||
void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl);
|
||||
int EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int n);
|
||||
|
||||
void EVP_DecodeInit(EVP_ENCODE_CTX *ctx);
|
||||
int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
|
||||
const unsigned char *in, int inl);
|
||||
int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned
|
||||
char *out, int *outl);
|
||||
int EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n);
|
||||
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# define EVP_CIPHER_CTX_init(c) EVP_CIPHER_CTX_reset(c)
|
||||
# define EVP_CIPHER_CTX_cleanup(c) EVP_CIPHER_CTX_reset(c)
|
||||
# endif
|
||||
EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);
|
||||
int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *c);
|
||||
void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *c);
|
||||
int EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen);
|
||||
int EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *c, int pad);
|
||||
int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr);
|
||||
int EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key);
|
||||
int EVP_CIPHER_get_params(EVP_CIPHER *cipher, OSSL_PARAM params[]);
|
||||
int EVP_CIPHER_CTX_set_params(EVP_CIPHER_CTX *ctx, const OSSL_PARAM params[]);
|
||||
int EVP_CIPHER_CTX_get_params(EVP_CIPHER_CTX *ctx, OSSL_PARAM params[]);
|
||||
const OSSL_PARAM *EVP_CIPHER_gettable_params(const EVP_CIPHER *cipher);
|
||||
const OSSL_PARAM *EVP_CIPHER_settable_ctx_params(const EVP_CIPHER *cipher);
|
||||
const OSSL_PARAM *EVP_CIPHER_gettable_ctx_params(const EVP_CIPHER *cipher);
|
||||
|
||||
const BIO_METHOD *BIO_f_md(void);
|
||||
const BIO_METHOD *BIO_f_base64(void);
|
||||
const BIO_METHOD *BIO_f_cipher(void);
|
||||
const BIO_METHOD *BIO_f_reliable(void);
|
||||
__owur int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,
|
||||
const unsigned char *i, int enc);
|
||||
|
||||
const EVP_MD *EVP_md_null(void);
|
||||
# ifndef OPENSSL_NO_MD2
|
||||
const EVP_MD *EVP_md2(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_MD4
|
||||
const EVP_MD *EVP_md4(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_MD5
|
||||
const EVP_MD *EVP_md5(void);
|
||||
const EVP_MD *EVP_md5_sha1(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_BLAKE2
|
||||
const EVP_MD *EVP_blake2b512(void);
|
||||
const EVP_MD *EVP_blake2s256(void);
|
||||
# endif
|
||||
const EVP_MD *EVP_sha1(void);
|
||||
const EVP_MD *EVP_sha224(void);
|
||||
const EVP_MD *EVP_sha256(void);
|
||||
const EVP_MD *EVP_sha384(void);
|
||||
const EVP_MD *EVP_sha512(void);
|
||||
const EVP_MD *EVP_sha512_224(void);
|
||||
const EVP_MD *EVP_sha512_256(void);
|
||||
const EVP_MD *EVP_sha3_224(void);
|
||||
const EVP_MD *EVP_sha3_256(void);
|
||||
const EVP_MD *EVP_sha3_384(void);
|
||||
const EVP_MD *EVP_sha3_512(void);
|
||||
const EVP_MD *EVP_shake128(void);
|
||||
const EVP_MD *EVP_shake256(void);
|
||||
|
||||
# ifndef OPENSSL_NO_MDC2
|
||||
const EVP_MD *EVP_mdc2(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_RMD160
|
||||
const EVP_MD *EVP_ripemd160(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_WHIRLPOOL
|
||||
const EVP_MD *EVP_whirlpool(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_SM3
|
||||
const EVP_MD *EVP_sm3(void);
|
||||
# endif
|
||||
const EVP_CIPHER *EVP_enc_null(void); /* does nothing :-) */
|
||||
# ifndef OPENSSL_NO_DES
|
||||
const EVP_CIPHER *EVP_des_ecb(void);
|
||||
const EVP_CIPHER *EVP_des_ede(void);
|
||||
const EVP_CIPHER *EVP_des_ede3(void);
|
||||
const EVP_CIPHER *EVP_des_ede_ecb(void);
|
||||
const EVP_CIPHER *EVP_des_ede3_ecb(void);
|
||||
const EVP_CIPHER *EVP_des_cfb64(void);
|
||||
# define EVP_des_cfb EVP_des_cfb64
|
||||
const EVP_CIPHER *EVP_des_cfb1(void);
|
||||
const EVP_CIPHER *EVP_des_cfb8(void);
|
||||
const EVP_CIPHER *EVP_des_ede_cfb64(void);
|
||||
# define EVP_des_ede_cfb EVP_des_ede_cfb64
|
||||
const EVP_CIPHER *EVP_des_ede3_cfb64(void);
|
||||
# define EVP_des_ede3_cfb EVP_des_ede3_cfb64
|
||||
const EVP_CIPHER *EVP_des_ede3_cfb1(void);
|
||||
const EVP_CIPHER *EVP_des_ede3_cfb8(void);
|
||||
const EVP_CIPHER *EVP_des_ofb(void);
|
||||
const EVP_CIPHER *EVP_des_ede_ofb(void);
|
||||
const EVP_CIPHER *EVP_des_ede3_ofb(void);
|
||||
const EVP_CIPHER *EVP_des_cbc(void);
|
||||
const EVP_CIPHER *EVP_des_ede_cbc(void);
|
||||
const EVP_CIPHER *EVP_des_ede3_cbc(void);
|
||||
const EVP_CIPHER *EVP_desx_cbc(void);
|
||||
const EVP_CIPHER *EVP_des_ede3_wrap(void);
|
||||
/*
|
||||
* This should now be supported through the dev_crypto ENGINE. But also, why
|
||||
* are rc4 and md5 declarations made here inside a "NO_DES" precompiler
|
||||
* branch?
|
||||
*/
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_RC4
|
||||
const EVP_CIPHER *EVP_rc4(void);
|
||||
const EVP_CIPHER *EVP_rc4_40(void);
|
||||
# ifndef OPENSSL_NO_MD5
|
||||
const EVP_CIPHER *EVP_rc4_hmac_md5(void);
|
||||
# endif
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_IDEA
|
||||
const EVP_CIPHER *EVP_idea_ecb(void);
|
||||
const EVP_CIPHER *EVP_idea_cfb64(void);
|
||||
# define EVP_idea_cfb EVP_idea_cfb64
|
||||
const EVP_CIPHER *EVP_idea_ofb(void);
|
||||
const EVP_CIPHER *EVP_idea_cbc(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_RC2
|
||||
const EVP_CIPHER *EVP_rc2_ecb(void);
|
||||
const EVP_CIPHER *EVP_rc2_cbc(void);
|
||||
const EVP_CIPHER *EVP_rc2_40_cbc(void);
|
||||
const EVP_CIPHER *EVP_rc2_64_cbc(void);
|
||||
const EVP_CIPHER *EVP_rc2_cfb64(void);
|
||||
# define EVP_rc2_cfb EVP_rc2_cfb64
|
||||
const EVP_CIPHER *EVP_rc2_ofb(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_BF
|
||||
const EVP_CIPHER *EVP_bf_ecb(void);
|
||||
const EVP_CIPHER *EVP_bf_cbc(void);
|
||||
const EVP_CIPHER *EVP_bf_cfb64(void);
|
||||
# define EVP_bf_cfb EVP_bf_cfb64
|
||||
const EVP_CIPHER *EVP_bf_ofb(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_CAST
|
||||
const EVP_CIPHER *EVP_cast5_ecb(void);
|
||||
const EVP_CIPHER *EVP_cast5_cbc(void);
|
||||
const EVP_CIPHER *EVP_cast5_cfb64(void);
|
||||
# define EVP_cast5_cfb EVP_cast5_cfb64
|
||||
const EVP_CIPHER *EVP_cast5_ofb(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_RC5
|
||||
const EVP_CIPHER *EVP_rc5_32_12_16_cbc(void);
|
||||
const EVP_CIPHER *EVP_rc5_32_12_16_ecb(void);
|
||||
const EVP_CIPHER *EVP_rc5_32_12_16_cfb64(void);
|
||||
# define EVP_rc5_32_12_16_cfb EVP_rc5_32_12_16_cfb64
|
||||
const EVP_CIPHER *EVP_rc5_32_12_16_ofb(void);
|
||||
# endif
|
||||
const EVP_CIPHER *EVP_aes_128_ecb(void);
|
||||
const EVP_CIPHER *EVP_aes_128_cbc(void);
|
||||
const EVP_CIPHER *EVP_aes_128_cfb1(void);
|
||||
const EVP_CIPHER *EVP_aes_128_cfb8(void);
|
||||
const EVP_CIPHER *EVP_aes_128_cfb128(void);
|
||||
# define EVP_aes_128_cfb EVP_aes_128_cfb128
|
||||
const EVP_CIPHER *EVP_aes_128_ofb(void);
|
||||
const EVP_CIPHER *EVP_aes_128_ctr(void);
|
||||
const EVP_CIPHER *EVP_aes_128_ccm(void);
|
||||
const EVP_CIPHER *EVP_aes_128_gcm(void);
|
||||
const EVP_CIPHER *EVP_aes_128_xts(void);
|
||||
const EVP_CIPHER *EVP_aes_128_wrap(void);
|
||||
const EVP_CIPHER *EVP_aes_128_wrap_pad(void);
|
||||
# ifndef OPENSSL_NO_OCB
|
||||
const EVP_CIPHER *EVP_aes_128_ocb(void);
|
||||
# endif
|
||||
const EVP_CIPHER *EVP_aes_192_ecb(void);
|
||||
const EVP_CIPHER *EVP_aes_192_cbc(void);
|
||||
const EVP_CIPHER *EVP_aes_192_cfb1(void);
|
||||
const EVP_CIPHER *EVP_aes_192_cfb8(void);
|
||||
const EVP_CIPHER *EVP_aes_192_cfb128(void);
|
||||
# define EVP_aes_192_cfb EVP_aes_192_cfb128
|
||||
const EVP_CIPHER *EVP_aes_192_ofb(void);
|
||||
const EVP_CIPHER *EVP_aes_192_ctr(void);
|
||||
const EVP_CIPHER *EVP_aes_192_ccm(void);
|
||||
const EVP_CIPHER *EVP_aes_192_gcm(void);
|
||||
const EVP_CIPHER *EVP_aes_192_wrap(void);
|
||||
const EVP_CIPHER *EVP_aes_192_wrap_pad(void);
|
||||
# ifndef OPENSSL_NO_OCB
|
||||
const EVP_CIPHER *EVP_aes_192_ocb(void);
|
||||
# endif
|
||||
const EVP_CIPHER *EVP_aes_256_ecb(void);
|
||||
const EVP_CIPHER *EVP_aes_256_cbc(void);
|
||||
const EVP_CIPHER *EVP_aes_256_cfb1(void);
|
||||
const EVP_CIPHER *EVP_aes_256_cfb8(void);
|
||||
const EVP_CIPHER *EVP_aes_256_cfb128(void);
|
||||
# define EVP_aes_256_cfb EVP_aes_256_cfb128
|
||||
const EVP_CIPHER *EVP_aes_256_ofb(void);
|
||||
const EVP_CIPHER *EVP_aes_256_ctr(void);
|
||||
const EVP_CIPHER *EVP_aes_256_ccm(void);
|
||||
const EVP_CIPHER *EVP_aes_256_gcm(void);
|
||||
const EVP_CIPHER *EVP_aes_256_xts(void);
|
||||
const EVP_CIPHER *EVP_aes_256_wrap(void);
|
||||
const EVP_CIPHER *EVP_aes_256_wrap_pad(void);
|
||||
# ifndef OPENSSL_NO_OCB
|
||||
const EVP_CIPHER *EVP_aes_256_ocb(void);
|
||||
# endif
|
||||
const EVP_CIPHER *EVP_aes_128_cbc_hmac_sha1(void);
|
||||
const EVP_CIPHER *EVP_aes_256_cbc_hmac_sha1(void);
|
||||
const EVP_CIPHER *EVP_aes_128_cbc_hmac_sha256(void);
|
||||
const EVP_CIPHER *EVP_aes_256_cbc_hmac_sha256(void);
|
||||
# ifndef OPENSSL_NO_SIV
|
||||
const EVP_CIPHER *EVP_aes_128_siv(void);
|
||||
const EVP_CIPHER *EVP_aes_192_siv(void);
|
||||
const EVP_CIPHER *EVP_aes_256_siv(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_ARIA
|
||||
const EVP_CIPHER *EVP_aria_128_ecb(void);
|
||||
const EVP_CIPHER *EVP_aria_128_cbc(void);
|
||||
const EVP_CIPHER *EVP_aria_128_cfb1(void);
|
||||
const EVP_CIPHER *EVP_aria_128_cfb8(void);
|
||||
const EVP_CIPHER *EVP_aria_128_cfb128(void);
|
||||
# define EVP_aria_128_cfb EVP_aria_128_cfb128
|
||||
const EVP_CIPHER *EVP_aria_128_ctr(void);
|
||||
const EVP_CIPHER *EVP_aria_128_ofb(void);
|
||||
const EVP_CIPHER *EVP_aria_128_gcm(void);
|
||||
const EVP_CIPHER *EVP_aria_128_ccm(void);
|
||||
const EVP_CIPHER *EVP_aria_192_ecb(void);
|
||||
const EVP_CIPHER *EVP_aria_192_cbc(void);
|
||||
const EVP_CIPHER *EVP_aria_192_cfb1(void);
|
||||
const EVP_CIPHER *EVP_aria_192_cfb8(void);
|
||||
const EVP_CIPHER *EVP_aria_192_cfb128(void);
|
||||
# define EVP_aria_192_cfb EVP_aria_192_cfb128
|
||||
const EVP_CIPHER *EVP_aria_192_ctr(void);
|
||||
const EVP_CIPHER *EVP_aria_192_ofb(void);
|
||||
const EVP_CIPHER *EVP_aria_192_gcm(void);
|
||||
const EVP_CIPHER *EVP_aria_192_ccm(void);
|
||||
const EVP_CIPHER *EVP_aria_256_ecb(void);
|
||||
const EVP_CIPHER *EVP_aria_256_cbc(void);
|
||||
const EVP_CIPHER *EVP_aria_256_cfb1(void);
|
||||
const EVP_CIPHER *EVP_aria_256_cfb8(void);
|
||||
const EVP_CIPHER *EVP_aria_256_cfb128(void);
|
||||
# define EVP_aria_256_cfb EVP_aria_256_cfb128
|
||||
const EVP_CIPHER *EVP_aria_256_ctr(void);
|
||||
const EVP_CIPHER *EVP_aria_256_ofb(void);
|
||||
const EVP_CIPHER *EVP_aria_256_gcm(void);
|
||||
const EVP_CIPHER *EVP_aria_256_ccm(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_CAMELLIA
|
||||
const EVP_CIPHER *EVP_camellia_128_ecb(void);
|
||||
const EVP_CIPHER *EVP_camellia_128_cbc(void);
|
||||
const EVP_CIPHER *EVP_camellia_128_cfb1(void);
|
||||
const EVP_CIPHER *EVP_camellia_128_cfb8(void);
|
||||
const EVP_CIPHER *EVP_camellia_128_cfb128(void);
|
||||
# define EVP_camellia_128_cfb EVP_camellia_128_cfb128
|
||||
const EVP_CIPHER *EVP_camellia_128_ofb(void);
|
||||
const EVP_CIPHER *EVP_camellia_128_ctr(void);
|
||||
const EVP_CIPHER *EVP_camellia_192_ecb(void);
|
||||
const EVP_CIPHER *EVP_camellia_192_cbc(void);
|
||||
const EVP_CIPHER *EVP_camellia_192_cfb1(void);
|
||||
const EVP_CIPHER *EVP_camellia_192_cfb8(void);
|
||||
const EVP_CIPHER *EVP_camellia_192_cfb128(void);
|
||||
# define EVP_camellia_192_cfb EVP_camellia_192_cfb128
|
||||
const EVP_CIPHER *EVP_camellia_192_ofb(void);
|
||||
const EVP_CIPHER *EVP_camellia_192_ctr(void);
|
||||
const EVP_CIPHER *EVP_camellia_256_ecb(void);
|
||||
const EVP_CIPHER *EVP_camellia_256_cbc(void);
|
||||
const EVP_CIPHER *EVP_camellia_256_cfb1(void);
|
||||
const EVP_CIPHER *EVP_camellia_256_cfb8(void);
|
||||
const EVP_CIPHER *EVP_camellia_256_cfb128(void);
|
||||
# define EVP_camellia_256_cfb EVP_camellia_256_cfb128
|
||||
const EVP_CIPHER *EVP_camellia_256_ofb(void);
|
||||
const EVP_CIPHER *EVP_camellia_256_ctr(void);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_CHACHA
|
||||
const EVP_CIPHER *EVP_chacha20(void);
|
||||
# ifndef OPENSSL_NO_POLY1305
|
||||
const EVP_CIPHER *EVP_chacha20_poly1305(void);
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_SEED
|
||||
const EVP_CIPHER *EVP_seed_ecb(void);
|
||||
const EVP_CIPHER *EVP_seed_cbc(void);
|
||||
const EVP_CIPHER *EVP_seed_cfb128(void);
|
||||
# define EVP_seed_cfb EVP_seed_cfb128
|
||||
const EVP_CIPHER *EVP_seed_ofb(void);
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_SM4
|
||||
const EVP_CIPHER *EVP_sm4_ecb(void);
|
||||
const EVP_CIPHER *EVP_sm4_cbc(void);
|
||||
const EVP_CIPHER *EVP_sm4_cfb128(void);
|
||||
# define EVP_sm4_cfb EVP_sm4_cfb128
|
||||
const EVP_CIPHER *EVP_sm4_ofb(void);
|
||||
const EVP_CIPHER *EVP_sm4_ctr(void);
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# define OPENSSL_add_all_algorithms_conf() \
|
||||
OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
|
||||
| OPENSSL_INIT_ADD_ALL_DIGESTS \
|
||||
| OPENSSL_INIT_LOAD_CONFIG, NULL)
|
||||
# define OPENSSL_add_all_algorithms_noconf() \
|
||||
OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
|
||||
| OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)
|
||||
|
||||
# ifdef OPENSSL_LOAD_CONF
|
||||
# define OpenSSL_add_all_algorithms() OPENSSL_add_all_algorithms_conf()
|
||||
# else
|
||||
# define OpenSSL_add_all_algorithms() OPENSSL_add_all_algorithms_noconf()
|
||||
# endif
|
||||
|
||||
# define OpenSSL_add_all_ciphers() \
|
||||
OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS, NULL)
|
||||
# define OpenSSL_add_all_digests() \
|
||||
OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)
|
||||
|
||||
# define EVP_cleanup() while(0) continue
|
||||
# endif
|
||||
|
||||
int EVP_add_cipher(const EVP_CIPHER *cipher);
|
||||
int EVP_add_digest(const EVP_MD *digest);
|
||||
|
||||
const EVP_CIPHER *EVP_get_cipherbyname(const char *name);
|
||||
const EVP_MD *EVP_get_digestbyname(const char *name);
|
||||
|
||||
void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph,
|
||||
const char *from, const char *to, void *x),
|
||||
void *arg);
|
||||
void EVP_CIPHER_do_all_sorted(void (*fn)
|
||||
(const EVP_CIPHER *ciph, const char *from,
|
||||
const char *to, void *x), void *arg);
|
||||
void EVP_CIPHER_do_all_provided(OPENSSL_CTX *libctx,
|
||||
void (*fn)(EVP_CIPHER *cipher, void *arg),
|
||||
void *arg);
|
||||
|
||||
void EVP_MD_do_all(void (*fn) (const EVP_MD *ciph,
|
||||
const char *from, const char *to, void *x),
|
||||
void *arg);
|
||||
void EVP_MD_do_all_sorted(void (*fn)
|
||||
(const EVP_MD *ciph, const char *from,
|
||||
const char *to, void *x), void *arg);
|
||||
void EVP_MD_do_all_provided(OPENSSL_CTX *libctx,
|
||||
void (*fn)(EVP_MD *md, void *arg),
|
||||
void *arg);
|
||||
|
||||
/* MAC stuff */
|
||||
|
||||
EVP_MAC *EVP_MAC_fetch(OPENSSL_CTX *libctx, const char *algorithm,
|
||||
const char *properties);
|
||||
int EVP_MAC_up_ref(EVP_MAC *mac);
|
||||
void EVP_MAC_free(EVP_MAC *mac);
|
||||
int EVP_MAC_number(const EVP_MAC *mac);
|
||||
int EVP_MAC_is_a(const EVP_MAC *mac, const char *name);
|
||||
const OSSL_PROVIDER *EVP_MAC_provider(const EVP_MAC *mac);
|
||||
int EVP_MAC_get_params(EVP_MAC *mac, OSSL_PARAM params[]);
|
||||
|
||||
EVP_MAC_CTX *EVP_MAC_CTX_new(EVP_MAC *mac);
|
||||
void EVP_MAC_CTX_free(EVP_MAC_CTX *ctx);
|
||||
EVP_MAC_CTX *EVP_MAC_CTX_dup(const EVP_MAC_CTX *src);
|
||||
EVP_MAC *EVP_MAC_CTX_mac(EVP_MAC_CTX *ctx);
|
||||
int EVP_MAC_CTX_get_params(EVP_MAC_CTX *ctx, OSSL_PARAM params[]);
|
||||
int EVP_MAC_CTX_set_params(EVP_MAC_CTX *ctx, const OSSL_PARAM params[]);
|
||||
|
||||
size_t EVP_MAC_size(EVP_MAC_CTX *ctx);
|
||||
int EVP_MAC_init(EVP_MAC_CTX *ctx);
|
||||
int EVP_MAC_update(EVP_MAC_CTX *ctx, const unsigned char *data, size_t datalen);
|
||||
int EVP_MAC_final(EVP_MAC_CTX *ctx,
|
||||
unsigned char *out, size_t *outl, size_t outsize);
|
||||
const OSSL_PARAM *EVP_MAC_gettable_params(const EVP_MAC *mac);
|
||||
const OSSL_PARAM *EVP_MAC_gettable_ctx_params(const EVP_MAC *mac);
|
||||
const OSSL_PARAM *EVP_MAC_settable_ctx_params(const EVP_MAC *mac);
|
||||
|
||||
void EVP_MAC_do_all_provided(OPENSSL_CTX *libctx,
|
||||
void (*fn)(EVP_MAC *mac, void *arg),
|
||||
void *arg);
|
||||
void EVP_MAC_names_do_all(const EVP_MAC *mac,
|
||||
void (*fn)(const char *name, void *data),
|
||||
void *data);
|
||||
|
||||
/* PKEY stuff */
|
||||
int EVP_PKEY_decrypt_old(unsigned char *dec_key,
|
||||
const unsigned char *enc_key, int enc_key_len,
|
||||
EVP_PKEY *private_key);
|
||||
int EVP_PKEY_encrypt_old(unsigned char *enc_key,
|
||||
const unsigned char *key, int key_len,
|
||||
EVP_PKEY *pub_key);
|
||||
int EVP_PKEY_type(int type);
|
||||
int EVP_PKEY_id(const EVP_PKEY *pkey);
|
||||
int EVP_PKEY_base_id(const EVP_PKEY *pkey);
|
||||
int EVP_PKEY_bits(const EVP_PKEY *pkey);
|
||||
int EVP_PKEY_security_bits(const EVP_PKEY *pkey);
|
||||
int EVP_PKEY_size(const EVP_PKEY *pkey);
|
||||
int EVP_PKEY_set_type(EVP_PKEY *pkey, int type);
|
||||
int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);
|
||||
int EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type);
|
||||
# ifndef OPENSSL_NO_ENGINE
|
||||
int EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e);
|
||||
ENGINE *EVP_PKEY_get0_engine(const EVP_PKEY *pkey);
|
||||
# endif
|
||||
int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);
|
||||
void *EVP_PKEY_get0(const EVP_PKEY *pkey);
|
||||
const unsigned char *EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len);
|
||||
# ifndef OPENSSL_NO_POLY1305
|
||||
const unsigned char *EVP_PKEY_get0_poly1305(const EVP_PKEY *pkey, size_t *len);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_SIPHASH
|
||||
const unsigned char *EVP_PKEY_get0_siphash(const EVP_PKEY *pkey, size_t *len);
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_RSA
|
||||
struct rsa_st;
|
||||
int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key);
|
||||
struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey);
|
||||
struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_DSA
|
||||
struct dsa_st;
|
||||
int EVP_PKEY_set1_DSA(EVP_PKEY *pkey, struct dsa_st *key);
|
||||
struct dsa_st *EVP_PKEY_get0_DSA(const EVP_PKEY *pkey);
|
||||
struct dsa_st *EVP_PKEY_get1_DSA(EVP_PKEY *pkey);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_DH
|
||||
struct dh_st;
|
||||
int EVP_PKEY_set1_DH(EVP_PKEY *pkey, struct dh_st *key);
|
||||
struct dh_st *EVP_PKEY_get0_DH(const EVP_PKEY *pkey);
|
||||
struct dh_st *EVP_PKEY_get1_DH(EVP_PKEY *pkey);
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_EC
|
||||
struct ec_key_st;
|
||||
int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key);
|
||||
struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey);
|
||||
struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
|
||||
# endif
|
||||
|
||||
EVP_PKEY *EVP_PKEY_new(void);
|
||||
int EVP_PKEY_up_ref(EVP_PKEY *pkey);
|
||||
void EVP_PKEY_free(EVP_PKEY *pkey);
|
||||
|
||||
EVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp,
|
||||
long length);
|
||||
int i2d_PublicKey(const EVP_PKEY *a, unsigned char **pp);
|
||||
|
||||
EVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp,
|
||||
long length);
|
||||
EVP_PKEY *d2i_AutoPrivateKey(EVP_PKEY **a, const unsigned char **pp,
|
||||
long length);
|
||||
int i2d_PrivateKey(const EVP_PKEY *a, unsigned char **pp);
|
||||
|
||||
int i2d_KeyParams(const EVP_PKEY *a, unsigned char **pp);
|
||||
EVP_PKEY *d2i_KeyParams(int type, EVP_PKEY **a, const unsigned char **pp,
|
||||
long length);
|
||||
int i2d_KeyParams_bio(BIO *bp, const EVP_PKEY *pkey);
|
||||
EVP_PKEY *d2i_KeyParams_bio(int type, EVP_PKEY **a, BIO *in);
|
||||
|
||||
int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from);
|
||||
int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey);
|
||||
int EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode);
|
||||
int EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b);
|
||||
|
||||
int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);
|
||||
|
||||
int EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey,
|
||||
int indent, ASN1_PCTX *pctx);
|
||||
int EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey,
|
||||
int indent, ASN1_PCTX *pctx);
|
||||
int EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey,
|
||||
int indent, ASN1_PCTX *pctx);
|
||||
|
||||
int EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid);
|
||||
int EVP_PKEY_supports_digest_nid(EVP_PKEY *pkey, int nid);
|
||||
|
||||
int EVP_PKEY_set1_tls_encodedpoint(EVP_PKEY *pkey,
|
||||
const unsigned char *pt, size_t ptlen);
|
||||
size_t EVP_PKEY_get1_tls_encodedpoint(EVP_PKEY *pkey, unsigned char **ppt);
|
||||
|
||||
int EVP_CIPHER_type(const EVP_CIPHER *ctx);
|
||||
|
||||
/* calls methods */
|
||||
int EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type);
|
||||
int EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type);
|
||||
|
||||
/* These are used by EVP_CIPHER methods */
|
||||
int EVP_CIPHER_set_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);
|
||||
int EVP_CIPHER_get_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);
|
||||
|
||||
/* PKCS5 password based encryption */
|
||||
int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
|
||||
ASN1_TYPE *param, const EVP_CIPHER *cipher,
|
||||
const EVP_MD *md, int en_de);
|
||||
int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen,
|
||||
const unsigned char *salt, int saltlen, int iter,
|
||||
int keylen, unsigned char *out);
|
||||
int PKCS5_PBKDF2_HMAC(const char *pass, int passlen,
|
||||
const unsigned char *salt, int saltlen, int iter,
|
||||
const EVP_MD *digest, int keylen, unsigned char *out);
|
||||
int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
|
||||
ASN1_TYPE *param, const EVP_CIPHER *cipher,
|
||||
const EVP_MD *md, int en_de);
|
||||
|
||||
#ifndef OPENSSL_NO_SCRYPT
|
||||
int EVP_PBE_scrypt(const char *pass, size_t passlen,
|
||||
const unsigned char *salt, size_t saltlen,
|
||||
uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem,
|
||||
unsigned char *key, size_t keylen);
|
||||
|
||||
int PKCS5_v2_scrypt_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass,
|
||||
int passlen, ASN1_TYPE *param,
|
||||
const EVP_CIPHER *c, const EVP_MD *md, int en_de);
|
||||
#endif
|
||||
|
||||
void PKCS5_PBE_add(void);
|
||||
|
||||
int EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen,
|
||||
ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de);
|
||||
|
||||
/* PBE type */
|
||||
|
||||
/* Can appear as the outermost AlgorithmIdentifier */
|
||||
# define EVP_PBE_TYPE_OUTER 0x0
|
||||
/* Is an PRF type OID */
|
||||
# define EVP_PBE_TYPE_PRF 0x1
|
||||
/* Is a PKCS#5 v2.0 KDF */
|
||||
# define EVP_PBE_TYPE_KDF 0x2
|
||||
|
||||
int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid,
|
||||
int md_nid, EVP_PBE_KEYGEN *keygen);
|
||||
int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md,
|
||||
EVP_PBE_KEYGEN *keygen);
|
||||
int EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid,
|
||||
EVP_PBE_KEYGEN **pkeygen);
|
||||
void EVP_PBE_cleanup(void);
|
||||
int EVP_PBE_get(int *ptype, int *ppbe_nid, size_t num);
|
||||
|
||||
# define ASN1_PKEY_ALIAS 0x1
|
||||
# define ASN1_PKEY_DYNAMIC 0x2
|
||||
# define ASN1_PKEY_SIGPARAM_NULL 0x4
|
||||
|
||||
# define ASN1_PKEY_CTRL_PKCS7_SIGN 0x1
|
||||
# define ASN1_PKEY_CTRL_PKCS7_ENCRYPT 0x2
|
||||
# define ASN1_PKEY_CTRL_DEFAULT_MD_NID 0x3
|
||||
# define ASN1_PKEY_CTRL_CMS_SIGN 0x5
|
||||
# define ASN1_PKEY_CTRL_CMS_ENVELOPE 0x7
|
||||
# define ASN1_PKEY_CTRL_CMS_RI_TYPE 0x8
|
||||
|
||||
# define ASN1_PKEY_CTRL_SET1_TLS_ENCPT 0x9
|
||||
# define ASN1_PKEY_CTRL_GET1_TLS_ENCPT 0xa
|
||||
# define ASN1_PKEY_CTRL_SUPPORTS_MD_NID 0xb
|
||||
|
||||
int EVP_PKEY_asn1_get_count(void);
|
||||
const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_get0(int idx);
|
||||
const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find(ENGINE **pe, int type);
|
||||
const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find_str(ENGINE **pe,
|
||||
const char *str, int len);
|
||||
int EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth);
|
||||
int EVP_PKEY_asn1_add_alias(int to, int from);
|
||||
int EVP_PKEY_asn1_get0_info(int *ppkey_id, int *pkey_base_id,
|
||||
int *ppkey_flags, const char **pinfo,
|
||||
const char **ppem_str,
|
||||
const EVP_PKEY_ASN1_METHOD *ameth);
|
||||
|
||||
const EVP_PKEY_ASN1_METHOD *EVP_PKEY_get0_asn1(const EVP_PKEY *pkey);
|
||||
EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_new(int id, int flags,
|
||||
const char *pem_str,
|
||||
const char *info);
|
||||
void EVP_PKEY_asn1_copy(EVP_PKEY_ASN1_METHOD *dst,
|
||||
const EVP_PKEY_ASN1_METHOD *src);
|
||||
void EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth);
|
||||
void EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*pub_decode) (EVP_PKEY *pk,
|
||||
X509_PUBKEY *pub),
|
||||
int (*pub_encode) (X509_PUBKEY *pub,
|
||||
const EVP_PKEY *pk),
|
||||
int (*pub_cmp) (const EVP_PKEY *a,
|
||||
const EVP_PKEY *b),
|
||||
int (*pub_print) (BIO *out,
|
||||
const EVP_PKEY *pkey,
|
||||
int indent, ASN1_PCTX *pctx),
|
||||
int (*pkey_size) (const EVP_PKEY *pk),
|
||||
int (*pkey_bits) (const EVP_PKEY *pk));
|
||||
void EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*priv_decode) (EVP_PKEY *pk,
|
||||
const PKCS8_PRIV_KEY_INFO
|
||||
*p8inf),
|
||||
int (*priv_encode) (PKCS8_PRIV_KEY_INFO *p8,
|
||||
const EVP_PKEY *pk),
|
||||
int (*priv_print) (BIO *out,
|
||||
const EVP_PKEY *pkey,
|
||||
int indent,
|
||||
ASN1_PCTX *pctx));
|
||||
void EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*param_decode) (EVP_PKEY *pkey,
|
||||
const unsigned char **pder,
|
||||
int derlen),
|
||||
int (*param_encode) (const EVP_PKEY *pkey,
|
||||
unsigned char **pder),
|
||||
int (*param_missing) (const EVP_PKEY *pk),
|
||||
int (*param_copy) (EVP_PKEY *to,
|
||||
const EVP_PKEY *from),
|
||||
int (*param_cmp) (const EVP_PKEY *a,
|
||||
const EVP_PKEY *b),
|
||||
int (*param_print) (BIO *out,
|
||||
const EVP_PKEY *pkey,
|
||||
int indent,
|
||||
ASN1_PCTX *pctx));
|
||||
|
||||
void EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
void (*pkey_free) (EVP_PKEY *pkey));
|
||||
void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*pkey_ctrl) (EVP_PKEY *pkey, int op,
|
||||
long arg1, void *arg2));
|
||||
void EVP_PKEY_asn1_set_item(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*item_verify) (EVP_MD_CTX *ctx,
|
||||
const ASN1_ITEM *it,
|
||||
void *asn,
|
||||
X509_ALGOR *a,
|
||||
ASN1_BIT_STRING *sig,
|
||||
EVP_PKEY *pkey),
|
||||
int (*item_sign) (EVP_MD_CTX *ctx,
|
||||
const ASN1_ITEM *it,
|
||||
void *asn,
|
||||
X509_ALGOR *alg1,
|
||||
X509_ALGOR *alg2,
|
||||
ASN1_BIT_STRING *sig));
|
||||
|
||||
void EVP_PKEY_asn1_set_siginf(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*siginf_set) (X509_SIG_INFO *siginf,
|
||||
const X509_ALGOR *alg,
|
||||
const ASN1_STRING *sig));
|
||||
|
||||
void EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*pkey_check) (const EVP_PKEY *pk));
|
||||
|
||||
void EVP_PKEY_asn1_set_public_check(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*pkey_pub_check) (const EVP_PKEY *pk));
|
||||
|
||||
void EVP_PKEY_asn1_set_param_check(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*pkey_param_check) (const EVP_PKEY *pk));
|
||||
|
||||
void EVP_PKEY_asn1_set_set_priv_key(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*set_priv_key) (EVP_PKEY *pk,
|
||||
const unsigned char
|
||||
*priv,
|
||||
size_t len));
|
||||
void EVP_PKEY_asn1_set_set_pub_key(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*set_pub_key) (EVP_PKEY *pk,
|
||||
const unsigned char *pub,
|
||||
size_t len));
|
||||
void EVP_PKEY_asn1_set_get_priv_key(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*get_priv_key) (const EVP_PKEY *pk,
|
||||
unsigned char *priv,
|
||||
size_t *len));
|
||||
void EVP_PKEY_asn1_set_get_pub_key(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*get_pub_key) (const EVP_PKEY *pk,
|
||||
unsigned char *pub,
|
||||
size_t *len));
|
||||
|
||||
void EVP_PKEY_asn1_set_security_bits(EVP_PKEY_ASN1_METHOD *ameth,
|
||||
int (*pkey_security_bits) (const EVP_PKEY
|
||||
*pk));
|
||||
|
||||
int EVP_PKEY_CTX_get_signature_md(EVP_PKEY_CTX *ctx, const EVP_MD **md);
|
||||
int EVP_PKEY_CTX_set_signature_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);
|
||||
|
||||
# define EVP_PKEY_OP_UNDEFINED 0
|
||||
# define EVP_PKEY_OP_PARAMGEN (1<<1)
|
||||
# define EVP_PKEY_OP_KEYGEN (1<<2)
|
||||
# define EVP_PKEY_OP_PARAMFROMDATA (1<<3)
|
||||
# define EVP_PKEY_OP_KEYFROMDATA (1<<4)
|
||||
# define EVP_PKEY_OP_SIGN (1<<5)
|
||||
# define EVP_PKEY_OP_VERIFY (1<<6)
|
||||
# define EVP_PKEY_OP_VERIFYRECOVER (1<<7)
|
||||
# define EVP_PKEY_OP_SIGNCTX (1<<8)
|
||||
# define EVP_PKEY_OP_VERIFYCTX (1<<9)
|
||||
# define EVP_PKEY_OP_ENCRYPT (1<<10)
|
||||
# define EVP_PKEY_OP_DECRYPT (1<<11)
|
||||
# define EVP_PKEY_OP_DERIVE (1<<12)
|
||||
|
||||
# define EVP_PKEY_OP_TYPE_SIG \
|
||||
(EVP_PKEY_OP_SIGN | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYRECOVER \
|
||||
| EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
|
||||
|
||||
# define EVP_PKEY_OP_TYPE_CRYPT \
|
||||
(EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
|
||||
|
||||
# define EVP_PKEY_OP_TYPE_NOGEN \
|
||||
(EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT | EVP_PKEY_OP_DERIVE)
|
||||
|
||||
# define EVP_PKEY_OP_TYPE_GEN \
|
||||
(EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
|
||||
|
||||
# define EVP_PKEY_OP_TYPE_FROMDATA \
|
||||
(EVP_PKEY_OP_PARAMFROMDATA | EVP_PKEY_OP_KEYFROMDATA)
|
||||
|
||||
# define EVP_PKEY_CTX_set_mac_key(ctx, key, len) \
|
||||
EVP_PKEY_CTX_ctrl(ctx, -1, EVP_PKEY_OP_KEYGEN, \
|
||||
EVP_PKEY_CTRL_SET_MAC_KEY, len, (void *)(key))
|
||||
|
||||
# define EVP_PKEY_CTRL_MD 1
|
||||
# define EVP_PKEY_CTRL_PEER_KEY 2
|
||||
|
||||
# define EVP_PKEY_CTRL_PKCS7_ENCRYPT 3
|
||||
# define EVP_PKEY_CTRL_PKCS7_DECRYPT 4
|
||||
|
||||
# define EVP_PKEY_CTRL_PKCS7_SIGN 5
|
||||
|
||||
# define EVP_PKEY_CTRL_SET_MAC_KEY 6
|
||||
|
||||
# define EVP_PKEY_CTRL_DIGESTINIT 7
|
||||
|
||||
/* Used by GOST key encryption in TLS */
|
||||
# define EVP_PKEY_CTRL_SET_IV 8
|
||||
|
||||
# define EVP_PKEY_CTRL_CMS_ENCRYPT 9
|
||||
# define EVP_PKEY_CTRL_CMS_DECRYPT 10
|
||||
# define EVP_PKEY_CTRL_CMS_SIGN 11
|
||||
|
||||
# define EVP_PKEY_CTRL_CIPHER 12
|
||||
|
||||
# define EVP_PKEY_CTRL_GET_MD 13
|
||||
|
||||
# define EVP_PKEY_CTRL_SET_DIGEST_SIZE 14
|
||||
|
||||
# define EVP_PKEY_ALG_CTRL 0x1000
|
||||
|
||||
# define EVP_PKEY_FLAG_AUTOARGLEN 2
|
||||
/*
|
||||
* Method handles all operations: don't assume any digest related defaults.
|
||||
*/
|
||||
# define EVP_PKEY_FLAG_SIGCTX_CUSTOM 4
|
||||
|
||||
const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type);
|
||||
EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags);
|
||||
void EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags,
|
||||
const EVP_PKEY_METHOD *meth);
|
||||
void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src);
|
||||
void EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth);
|
||||
int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth);
|
||||
int EVP_PKEY_meth_remove(const EVP_PKEY_METHOD *pmeth);
|
||||
size_t EVP_PKEY_meth_get_count(void);
|
||||
const EVP_PKEY_METHOD *EVP_PKEY_meth_get0(size_t idx);
|
||||
|
||||
EVP_KEYMGMT *EVP_KEYMGMT_fetch(OPENSSL_CTX *ctx, const char *algorithm,
|
||||
const char *properties);
|
||||
int EVP_KEYMGMT_up_ref(EVP_KEYMGMT *keymgmt);
|
||||
void EVP_KEYMGMT_free(EVP_KEYMGMT *keymgmt);
|
||||
const OSSL_PROVIDER *EVP_KEYMGMT_provider(const EVP_KEYMGMT *keymgmt);
|
||||
int EVP_KEYMGMT_number(const EVP_KEYMGMT *keymgmt);
|
||||
int EVP_KEYMGMT_is_a(const EVP_KEYMGMT *keymgmt, const char *name);
|
||||
void EVP_KEYMGMT_do_all_provided(OPENSSL_CTX *libctx,
|
||||
void (*fn)(EVP_KEYMGMT *keymgmt, void *arg),
|
||||
void *arg);
|
||||
void EVP_KEYMGMT_names_do_all(const EVP_KEYMGMT *keymgmt,
|
||||
void (*fn)(const char *name, void *data),
|
||||
void *data);
|
||||
|
||||
EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e);
|
||||
EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e);
|
||||
EVP_PKEY_CTX *EVP_PKEY_CTX_new_from_name(OPENSSL_CTX *libctx,
|
||||
const char *name,
|
||||
const char *propquery);
|
||||
EVP_PKEY_CTX *EVP_PKEY_CTX_new_from_pkey(OPENSSL_CTX *libctx,
|
||||
EVP_PKEY *pkey);
|
||||
EVP_PKEY_CTX *EVP_PKEY_CTX_dup(const EVP_PKEY_CTX *ctx);
|
||||
void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx);
|
||||
|
||||
int EVP_PKEY_CTX_get_params(EVP_PKEY_CTX *ctx, OSSL_PARAM *params);
|
||||
const OSSL_PARAM *EVP_PKEY_CTX_gettable_params(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_CTX_set_params(EVP_PKEY_CTX *ctx, OSSL_PARAM *params);
|
||||
const OSSL_PARAM *EVP_PKEY_CTX_settable_params(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype,
|
||||
int cmd, int p1, void *p2);
|
||||
int EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *type,
|
||||
const char *value);
|
||||
int EVP_PKEY_CTX_ctrl_uint64(EVP_PKEY_CTX *ctx, int keytype, int optype,
|
||||
int cmd, uint64_t value);
|
||||
|
||||
int EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str);
|
||||
int EVP_PKEY_CTX_hex2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *hex);
|
||||
|
||||
int EVP_PKEY_CTX_md(EVP_PKEY_CTX *ctx, int optype, int cmd, const char *md);
|
||||
|
||||
int EVP_PKEY_CTX_get_operation(EVP_PKEY_CTX *ctx);
|
||||
void EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen);
|
||||
|
||||
EVP_PKEY *EVP_PKEY_new_mac_key(int type, ENGINE *e,
|
||||
const unsigned char *key, int keylen);
|
||||
EVP_PKEY *EVP_PKEY_new_raw_private_key(int type, ENGINE *e,
|
||||
const unsigned char *priv,
|
||||
size_t len);
|
||||
EVP_PKEY *EVP_PKEY_new_raw_public_key(int type, ENGINE *e,
|
||||
const unsigned char *pub,
|
||||
size_t len);
|
||||
int EVP_PKEY_get_raw_private_key(const EVP_PKEY *pkey, unsigned char *priv,
|
||||
size_t *len);
|
||||
int EVP_PKEY_get_raw_public_key(const EVP_PKEY *pkey, unsigned char *pub,
|
||||
size_t *len);
|
||||
|
||||
EVP_PKEY *EVP_PKEY_new_CMAC_key(ENGINE *e, const unsigned char *priv,
|
||||
size_t len, const EVP_CIPHER *cipher);
|
||||
|
||||
void EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data);
|
||||
void *EVP_PKEY_CTX_get_data(const EVP_PKEY_CTX *ctx);
|
||||
EVP_PKEY *EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx);
|
||||
|
||||
EVP_PKEY *EVP_PKEY_CTX_get0_peerkey(EVP_PKEY_CTX *ctx);
|
||||
|
||||
void EVP_PKEY_CTX_set_app_data(EVP_PKEY_CTX *ctx, void *data);
|
||||
void *EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx);
|
||||
|
||||
void EVP_SIGNATURE_free(EVP_SIGNATURE *signature);
|
||||
int EVP_SIGNATURE_up_ref(EVP_SIGNATURE *signature);
|
||||
OSSL_PROVIDER *EVP_SIGNATURE_provider(const EVP_SIGNATURE *signature);
|
||||
EVP_SIGNATURE *EVP_SIGNATURE_fetch(OPENSSL_CTX *ctx, const char *algorithm,
|
||||
const char *properties);
|
||||
int EVP_SIGNATURE_is_a(const EVP_SIGNATURE *signature, const char *name);
|
||||
int EVP_SIGNATURE_number(const EVP_SIGNATURE *signature);
|
||||
void EVP_SIGNATURE_do_all_provided(OPENSSL_CTX *libctx,
|
||||
void (*fn)(EVP_SIGNATURE *signature,
|
||||
void *data),
|
||||
void *data);
|
||||
void EVP_SIGNATURE_names_do_all(const EVP_SIGNATURE *signature,
|
||||
void (*fn)(const char *name, void *data),
|
||||
void *data);
|
||||
|
||||
void EVP_ASYM_CIPHER_free(EVP_ASYM_CIPHER *cipher);
|
||||
int EVP_ASYM_CIPHER_up_ref(EVP_ASYM_CIPHER *cipher);
|
||||
OSSL_PROVIDER *EVP_ASYM_CIPHER_provider(const EVP_ASYM_CIPHER *cipher);
|
||||
EVP_ASYM_CIPHER *EVP_ASYM_CIPHER_fetch(OPENSSL_CTX *ctx, const char *algorithm,
|
||||
const char *properties);
|
||||
int EVP_ASYM_CIPHER_is_a(const EVP_ASYM_CIPHER *cipher, const char *name);
|
||||
int EVP_ASYM_CIPHER_number(const EVP_ASYM_CIPHER *cipher);
|
||||
void EVP_ASYM_CIPHER_do_all_provided(OPENSSL_CTX *libctx,
|
||||
void (*fn)(EVP_ASYM_CIPHER *cipher,
|
||||
void *arg),
|
||||
void *arg);
|
||||
void EVP_ASYM_CIPHER_names_do_all(const EVP_ASYM_CIPHER *cipher,
|
||||
void (*fn)(const char *name, void *data),
|
||||
void *data);
|
||||
|
||||
int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_sign(EVP_PKEY_CTX *ctx,
|
||||
unsigned char *sig, size_t *siglen,
|
||||
const unsigned char *tbs, size_t tbslen);
|
||||
int EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_verify(EVP_PKEY_CTX *ctx,
|
||||
const unsigned char *sig, size_t siglen,
|
||||
const unsigned char *tbs, size_t tbslen);
|
||||
int EVP_PKEY_verify_recover_init(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_verify_recover(EVP_PKEY_CTX *ctx,
|
||||
unsigned char *rout, size_t *routlen,
|
||||
const unsigned char *sig, size_t siglen);
|
||||
int EVP_PKEY_encrypt_init(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_encrypt(EVP_PKEY_CTX *ctx,
|
||||
unsigned char *out, size_t *outlen,
|
||||
const unsigned char *in, size_t inlen);
|
||||
int EVP_PKEY_decrypt_init(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_decrypt(EVP_PKEY_CTX *ctx,
|
||||
unsigned char *out, size_t *outlen,
|
||||
const unsigned char *in, size_t inlen);
|
||||
|
||||
int EVP_PKEY_derive_init(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_derive_set_peer(EVP_PKEY_CTX *ctx, EVP_PKEY *peer);
|
||||
int EVP_PKEY_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen);
|
||||
|
||||
typedef int EVP_PKEY_gen_cb(EVP_PKEY_CTX *ctx);
|
||||
|
||||
int EVP_PKEY_param_fromdata_init(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_key_fromdata_init(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_fromdata(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey, OSSL_PARAM param[]);
|
||||
const OSSL_PARAM *EVP_PKEY_param_fromdata_settable(EVP_PKEY_CTX *ctx);
|
||||
const OSSL_PARAM *EVP_PKEY_key_fromdata_settable(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_paramgen_init(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);
|
||||
int EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);
|
||||
int EVP_PKEY_check(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_public_check(EVP_PKEY_CTX *ctx);
|
||||
int EVP_PKEY_param_check(EVP_PKEY_CTX *ctx);
|
||||
|
||||
void EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb);
|
||||
EVP_PKEY_gen_cb *EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx);
|
||||
|
||||
int EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx);
|
||||
|
||||
void EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth,
|
||||
int (*init) (EVP_PKEY_CTX *ctx));
|
||||
|
||||
void EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth,
|
||||
int (*copy) (EVP_PKEY_CTX *dst,
|
||||
const EVP_PKEY_CTX *src));
|
||||
|
||||
void EVP_PKEY_meth_set_cleanup(EVP_PKEY_METHOD *pmeth,
|
||||
void (*cleanup) (EVP_PKEY_CTX *ctx));
|
||||
|
||||
void EVP_PKEY_meth_set_paramgen(EVP_PKEY_METHOD *pmeth,
|
||||
int (*paramgen_init) (EVP_PKEY_CTX *ctx),
|
||||
int (*paramgen) (EVP_PKEY_CTX *ctx,
|
||||
EVP_PKEY *pkey));
|
||||
|
||||
void EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth,
|
||||
int (*keygen_init) (EVP_PKEY_CTX *ctx),
|
||||
int (*keygen) (EVP_PKEY_CTX *ctx,
|
||||
EVP_PKEY *pkey));
|
||||
|
||||
void EVP_PKEY_meth_set_sign(EVP_PKEY_METHOD *pmeth,
|
||||
int (*sign_init) (EVP_PKEY_CTX *ctx),
|
||||
int (*sign) (EVP_PKEY_CTX *ctx,
|
||||
unsigned char *sig, size_t *siglen,
|
||||
const unsigned char *tbs,
|
||||
size_t tbslen));
|
||||
|
||||
void EVP_PKEY_meth_set_verify(EVP_PKEY_METHOD *pmeth,
|
||||
int (*verify_init) (EVP_PKEY_CTX *ctx),
|
||||
int (*verify) (EVP_PKEY_CTX *ctx,
|
||||
const unsigned char *sig,
|
||||
size_t siglen,
|
||||
const unsigned char *tbs,
|
||||
size_t tbslen));
|
||||
|
||||
void EVP_PKEY_meth_set_verify_recover(EVP_PKEY_METHOD *pmeth,
|
||||
int (*verify_recover_init) (EVP_PKEY_CTX
|
||||
*ctx),
|
||||
int (*verify_recover) (EVP_PKEY_CTX
|
||||
*ctx,
|
||||
unsigned char
|
||||
*sig,
|
||||
size_t *siglen,
|
||||
const unsigned
|
||||
char *tbs,
|
||||
size_t tbslen));
|
||||
|
||||
void EVP_PKEY_meth_set_signctx(EVP_PKEY_METHOD *pmeth,
|
||||
int (*signctx_init) (EVP_PKEY_CTX *ctx,
|
||||
EVP_MD_CTX *mctx),
|
||||
int (*signctx) (EVP_PKEY_CTX *ctx,
|
||||
unsigned char *sig,
|
||||
size_t *siglen,
|
||||
EVP_MD_CTX *mctx));
|
||||
|
||||
void EVP_PKEY_meth_set_verifyctx(EVP_PKEY_METHOD *pmeth,
|
||||
int (*verifyctx_init) (EVP_PKEY_CTX *ctx,
|
||||
EVP_MD_CTX *mctx),
|
||||
int (*verifyctx) (EVP_PKEY_CTX *ctx,
|
||||
const unsigned char *sig,
|
||||
int siglen,
|
||||
EVP_MD_CTX *mctx));
|
||||
|
||||
void EVP_PKEY_meth_set_encrypt(EVP_PKEY_METHOD *pmeth,
|
||||
int (*encrypt_init) (EVP_PKEY_CTX *ctx),
|
||||
int (*encryptfn) (EVP_PKEY_CTX *ctx,
|
||||
unsigned char *out,
|
||||
size_t *outlen,
|
||||
const unsigned char *in,
|
||||
size_t inlen));
|
||||
|
||||
void EVP_PKEY_meth_set_decrypt(EVP_PKEY_METHOD *pmeth,
|
||||
int (*decrypt_init) (EVP_PKEY_CTX *ctx),
|
||||
int (*decrypt) (EVP_PKEY_CTX *ctx,
|
||||
unsigned char *out,
|
||||
size_t *outlen,
|
||||
const unsigned char *in,
|
||||
size_t inlen));
|
||||
|
||||
void EVP_PKEY_meth_set_derive(EVP_PKEY_METHOD *pmeth,
|
||||
int (*derive_init) (EVP_PKEY_CTX *ctx),
|
||||
int (*derive) (EVP_PKEY_CTX *ctx,
|
||||
unsigned char *key,
|
||||
size_t *keylen));
|
||||
|
||||
void EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth,
|
||||
int (*ctrl) (EVP_PKEY_CTX *ctx, int type, int p1,
|
||||
void *p2),
|
||||
int (*ctrl_str) (EVP_PKEY_CTX *ctx,
|
||||
const char *type,
|
||||
const char *value));
|
||||
|
||||
void EVP_PKEY_meth_set_digestsign(EVP_PKEY_METHOD *pmeth,
|
||||
int (*digestsign) (EVP_MD_CTX *ctx,
|
||||
unsigned char *sig,
|
||||
size_t *siglen,
|
||||
const unsigned char *tbs,
|
||||
size_t tbslen));
|
||||
|
||||
void EVP_PKEY_meth_set_digestverify(EVP_PKEY_METHOD *pmeth,
|
||||
int (*digestverify) (EVP_MD_CTX *ctx,
|
||||
const unsigned char *sig,
|
||||
size_t siglen,
|
||||
const unsigned char *tbs,
|
||||
size_t tbslen));
|
||||
|
||||
void EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth,
|
||||
int (*check) (EVP_PKEY *pkey));
|
||||
|
||||
void EVP_PKEY_meth_set_public_check(EVP_PKEY_METHOD *pmeth,
|
||||
int (*check) (EVP_PKEY *pkey));
|
||||
|
||||
void EVP_PKEY_meth_set_param_check(EVP_PKEY_METHOD *pmeth,
|
||||
int (*check) (EVP_PKEY *pkey));
|
||||
|
||||
void EVP_PKEY_meth_set_digest_custom(EVP_PKEY_METHOD *pmeth,
|
||||
int (*digest_custom) (EVP_PKEY_CTX *ctx,
|
||||
EVP_MD_CTX *mctx));
|
||||
|
||||
void EVP_PKEY_meth_get_init(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pinit) (EVP_PKEY_CTX *ctx));
|
||||
|
||||
void EVP_PKEY_meth_get_copy(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pcopy) (EVP_PKEY_CTX *dst,
|
||||
const EVP_PKEY_CTX *src));
|
||||
|
||||
void EVP_PKEY_meth_get_cleanup(const EVP_PKEY_METHOD *pmeth,
|
||||
void (**pcleanup) (EVP_PKEY_CTX *ctx));
|
||||
|
||||
void EVP_PKEY_meth_get_paramgen(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pparamgen_init) (EVP_PKEY_CTX *ctx),
|
||||
int (**pparamgen) (EVP_PKEY_CTX *ctx,
|
||||
EVP_PKEY *pkey));
|
||||
|
||||
void EVP_PKEY_meth_get_keygen(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pkeygen_init) (EVP_PKEY_CTX *ctx),
|
||||
int (**pkeygen) (EVP_PKEY_CTX *ctx,
|
||||
EVP_PKEY *pkey));
|
||||
|
||||
void EVP_PKEY_meth_get_sign(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**psign_init) (EVP_PKEY_CTX *ctx),
|
||||
int (**psign) (EVP_PKEY_CTX *ctx,
|
||||
unsigned char *sig, size_t *siglen,
|
||||
const unsigned char *tbs,
|
||||
size_t tbslen));
|
||||
|
||||
void EVP_PKEY_meth_get_verify(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pverify_init) (EVP_PKEY_CTX *ctx),
|
||||
int (**pverify) (EVP_PKEY_CTX *ctx,
|
||||
const unsigned char *sig,
|
||||
size_t siglen,
|
||||
const unsigned char *tbs,
|
||||
size_t tbslen));
|
||||
|
||||
void EVP_PKEY_meth_get_verify_recover(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pverify_recover_init) (EVP_PKEY_CTX
|
||||
*ctx),
|
||||
int (**pverify_recover) (EVP_PKEY_CTX
|
||||
*ctx,
|
||||
unsigned char
|
||||
*sig,
|
||||
size_t *siglen,
|
||||
const unsigned
|
||||
char *tbs,
|
||||
size_t tbslen));
|
||||
|
||||
void EVP_PKEY_meth_get_signctx(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**psignctx_init) (EVP_PKEY_CTX *ctx,
|
||||
EVP_MD_CTX *mctx),
|
||||
int (**psignctx) (EVP_PKEY_CTX *ctx,
|
||||
unsigned char *sig,
|
||||
size_t *siglen,
|
||||
EVP_MD_CTX *mctx));
|
||||
|
||||
void EVP_PKEY_meth_get_verifyctx(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pverifyctx_init) (EVP_PKEY_CTX *ctx,
|
||||
EVP_MD_CTX *mctx),
|
||||
int (**pverifyctx) (EVP_PKEY_CTX *ctx,
|
||||
const unsigned char *sig,
|
||||
int siglen,
|
||||
EVP_MD_CTX *mctx));
|
||||
|
||||
void EVP_PKEY_meth_get_encrypt(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pencrypt_init) (EVP_PKEY_CTX *ctx),
|
||||
int (**pencryptfn) (EVP_PKEY_CTX *ctx,
|
||||
unsigned char *out,
|
||||
size_t *outlen,
|
||||
const unsigned char *in,
|
||||
size_t inlen));
|
||||
|
||||
void EVP_PKEY_meth_get_decrypt(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pdecrypt_init) (EVP_PKEY_CTX *ctx),
|
||||
int (**pdecrypt) (EVP_PKEY_CTX *ctx,
|
||||
unsigned char *out,
|
||||
size_t *outlen,
|
||||
const unsigned char *in,
|
||||
size_t inlen));
|
||||
|
||||
void EVP_PKEY_meth_get_derive(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pderive_init) (EVP_PKEY_CTX *ctx),
|
||||
int (**pderive) (EVP_PKEY_CTX *ctx,
|
||||
unsigned char *key,
|
||||
size_t *keylen));
|
||||
|
||||
void EVP_PKEY_meth_get_ctrl(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pctrl) (EVP_PKEY_CTX *ctx, int type, int p1,
|
||||
void *p2),
|
||||
int (**pctrl_str) (EVP_PKEY_CTX *ctx,
|
||||
const char *type,
|
||||
const char *value));
|
||||
|
||||
void EVP_PKEY_meth_get_digestsign(EVP_PKEY_METHOD *pmeth,
|
||||
int (**digestsign) (EVP_MD_CTX *ctx,
|
||||
unsigned char *sig,
|
||||
size_t *siglen,
|
||||
const unsigned char *tbs,
|
||||
size_t tbslen));
|
||||
|
||||
void EVP_PKEY_meth_get_digestverify(EVP_PKEY_METHOD *pmeth,
|
||||
int (**digestverify) (EVP_MD_CTX *ctx,
|
||||
const unsigned char *sig,
|
||||
size_t siglen,
|
||||
const unsigned char *tbs,
|
||||
size_t tbslen));
|
||||
|
||||
void EVP_PKEY_meth_get_check(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pcheck) (EVP_PKEY *pkey));
|
||||
|
||||
void EVP_PKEY_meth_get_public_check(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pcheck) (EVP_PKEY *pkey));
|
||||
|
||||
void EVP_PKEY_meth_get_param_check(const EVP_PKEY_METHOD *pmeth,
|
||||
int (**pcheck) (EVP_PKEY *pkey));
|
||||
|
||||
void EVP_PKEY_meth_get_digest_custom(EVP_PKEY_METHOD *pmeth,
|
||||
int (**pdigest_custom) (EVP_PKEY_CTX *ctx,
|
||||
EVP_MD_CTX *mctx));
|
||||
|
||||
void EVP_KEYEXCH_free(EVP_KEYEXCH *exchange);
|
||||
int EVP_KEYEXCH_up_ref(EVP_KEYEXCH *exchange);
|
||||
EVP_KEYEXCH *EVP_KEYEXCH_fetch(OPENSSL_CTX *ctx, const char *algorithm,
|
||||
const char *properties);
|
||||
OSSL_PROVIDER *EVP_KEYEXCH_provider(const EVP_KEYEXCH *exchange);
|
||||
int EVP_KEYEXCH_is_a(const EVP_KEYEXCH *keyexch, const char *name);
|
||||
int EVP_KEYEXCH_number(const EVP_KEYEXCH *keyexch);
|
||||
void EVP_KEYEXCH_do_all_provided(OPENSSL_CTX *libctx,
|
||||
void (*fn)(EVP_KEYEXCH *keyexch, void *data),
|
||||
void *data);
|
||||
void EVP_KEYEXCH_names_do_all(const EVP_KEYEXCH *keyexch,
|
||||
void (*fn)(const char *name, void *data),
|
||||
void *data);
|
||||
|
||||
void EVP_add_alg_module(void);
|
||||
|
||||
/*
|
||||
* Convenient helper functions to transfer string based controls.
|
||||
* The callback gets called with the parsed value.
|
||||
*/
|
||||
int EVP_str2ctrl(int (*cb)(void *ctx, int cmd, void *buf, size_t buflen),
|
||||
void *ctx, int cmd, const char *value);
|
||||
int EVP_hex2ctrl(int (*cb)(void *ctx, int cmd, void *buf, size_t buflen),
|
||||
void *ctx, int cmd, const char *hex);
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
+22
-21
@@ -24,34 +24,35 @@
|
||||
# define HMAC_MAX_MD_CBLOCK 128 /* Deprecated */
|
||||
# endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
# ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
# endif
|
||||
|
||||
size_t HMAC_size(const HMAC_CTX *e);
|
||||
HMAC_CTX *HMAC_CTX_new(void);
|
||||
int HMAC_CTX_reset(HMAC_CTX *ctx);
|
||||
void HMAC_CTX_free(HMAC_CTX *ctx);
|
||||
DEPRECATEDIN_3_0(size_t HMAC_size(const HMAC_CTX *e))
|
||||
DEPRECATEDIN_3_0(HMAC_CTX *HMAC_CTX_new(void))
|
||||
DEPRECATEDIN_3_0(int HMAC_CTX_reset(HMAC_CTX *ctx))
|
||||
DEPRECATEDIN_3_0(void HMAC_CTX_free(HMAC_CTX *ctx))
|
||||
|
||||
DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
|
||||
const EVP_MD *md))
|
||||
const EVP_MD *md))
|
||||
|
||||
/*__owur*/ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
|
||||
const EVP_MD *md, ENGINE *impl);
|
||||
/*__owur*/ int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,
|
||||
size_t len);
|
||||
/*__owur*/ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md,
|
||||
unsigned int *len);
|
||||
unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
|
||||
const unsigned char *d, size_t n, unsigned char *md,
|
||||
unsigned int *md_len);
|
||||
__owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
|
||||
DEPRECATEDIN_3_0(int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
|
||||
const EVP_MD *md, ENGINE *impl))
|
||||
DEPRECATEDIN_3_0(int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,
|
||||
size_t len))
|
||||
DEPRECATEDIN_3_0(int HMAC_Final(HMAC_CTX *ctx, unsigned char *md,
|
||||
unsigned int *len))
|
||||
DEPRECATEDIN_3_0(unsigned char *HMAC(const EVP_MD *evp_md, const void *key,
|
||||
int key_len, const unsigned char *d,
|
||||
size_t n, unsigned char *md,
|
||||
unsigned int *md_len))
|
||||
DEPRECATEDIN_3_0(__owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx))
|
||||
|
||||
void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);
|
||||
const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx);
|
||||
DEPRECATEDIN_3_0(void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags))
|
||||
DEPRECATEDIN_3_0(const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx))
|
||||
|
||||
#ifdef __cplusplus
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
# endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright Siemens AG 2018-2020
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#ifndef OPENSSL_HTTP_H
|
||||
# define OPENSSL_HTTP_H
|
||||
# pragma once
|
||||
|
||||
# include <openssl/opensslconf.h>
|
||||
|
||||
# include <openssl/bio.h>
|
||||
# include <openssl/asn1.h>
|
||||
# include <openssl/conf.h>
|
||||
|
||||
|
||||
# ifdef __cplusplus
|
||||
extern "C" {
|
||||
# endif
|
||||
|
||||
typedef BIO *(*OSSL_HTTP_bio_cb_t)(BIO *bio, void *arg, int connect, int detail);
|
||||
# ifndef OPENSSL_NO_SOCK
|
||||
BIO *OSSL_HTTP_get(const char *url, const char *proxy, const char *proxy_port,
|
||||
BIO *bio, BIO *rbio,
|
||||
OSSL_HTTP_bio_cb_t bio_update_fn, void *arg,
|
||||
const STACK_OF(CONF_VALUE) *headers,
|
||||
int maxline, unsigned long max_resp_len, int timeout,
|
||||
const char *expected_content_type, int expect_asn1);
|
||||
ASN1_VALUE *OSSL_HTTP_get_asn1(const char *url,
|
||||
const char *proxy, const char *proxy_port,
|
||||
BIO *bio, BIO *rbio,
|
||||
OSSL_HTTP_bio_cb_t bio_update_fn, void *arg,
|
||||
const STACK_OF(CONF_VALUE) *headers,
|
||||
int maxline, unsigned long max_resp_len,
|
||||
int timeout, const char *expected_content_type,
|
||||
const ASN1_ITEM *it);
|
||||
ASN1_VALUE *OSSL_HTTP_post_asn1(const char *server, const char *port,
|
||||
const char *path, int use_ssl,
|
||||
const char *proxy, const char *proxy_port,
|
||||
BIO *bio, BIO *rbio,
|
||||
OSSL_HTTP_bio_cb_t bio_update_fn, void *arg,
|
||||
const STACK_OF(CONF_VALUE) *headers,
|
||||
const char *content_type,
|
||||
ASN1_VALUE *req, const ASN1_ITEM *req_it,
|
||||
int maxline, unsigned long max_resp_len,
|
||||
int timeout, const char *expected_ct,
|
||||
const ASN1_ITEM *rsp_it);
|
||||
BIO *OSSL_HTTP_transfer(const char *server, const char *port, const char *path,
|
||||
int use_ssl, const char *proxy, const char *proxy_port,
|
||||
BIO *bio, BIO *rbio,
|
||||
OSSL_HTTP_bio_cb_t bio_update_fn, void *arg,
|
||||
const STACK_OF(CONF_VALUE) *headers,
|
||||
const char *content_type, BIO *req_mem,
|
||||
int maxline, unsigned long max_resp_len, int timeout,
|
||||
const char *expected_ct, int expect_asn1,
|
||||
char **redirection_url);
|
||||
int OSSL_HTTP_proxy_connect(BIO *bio, const char *server, const char *port,
|
||||
const char *proxyuser, const char *proxypass,
|
||||
int timeout, BIO *bio_err, const char *prog);
|
||||
# endif
|
||||
int OSSL_HTTP_parse_url(const char *url, char **phost, char **pport,
|
||||
char **ppath, int *pssl);
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
#endif /* !defined OPENSSL_HTTP_H */
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Generated by util/mkerr.pl DO NOT EDIT
|
||||
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#ifndef OPENSSL_HTTPERR_H
|
||||
# define OPENSSL_HTTPERR_H
|
||||
|
||||
# include <openssl/opensslconf.h>
|
||||
# include <openssl/symhacks.h>
|
||||
|
||||
|
||||
# ifdef __cplusplus
|
||||
extern "C"
|
||||
# endif
|
||||
int ERR_load_HTTP_strings(void);
|
||||
|
||||
/*
|
||||
* HTTP function codes.
|
||||
*/
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
# endif
|
||||
|
||||
/*
|
||||
* HTTP reason codes.
|
||||
*/
|
||||
# define HTTP_R_ASN1_LEN_EXCEEDS_MAX_RESP_LEN 108
|
||||
# define HTTP_R_CONNECT_FAILURE 100
|
||||
# define HTTP_R_ERROR_PARSING_ASN1_LENGTH 109
|
||||
# define HTTP_R_ERROR_PARSING_CONTENT_LENGTH 119
|
||||
# define HTTP_R_ERROR_PARSING_URL 101
|
||||
# define HTTP_R_ERROR_RECEIVING 103
|
||||
# define HTTP_R_ERROR_SENDING 102
|
||||
# define HTTP_R_INCONSISTENT_CONTENT_LENGTH 120
|
||||
# define HTTP_R_MAX_RESP_LEN_EXCEEDED 117
|
||||
# define HTTP_R_MISSING_ASN1_ENCODING 110
|
||||
# define HTTP_R_MISSING_CONTENT_TYPE 121
|
||||
# define HTTP_R_MISSING_REDIRECT_LOCATION 111
|
||||
# define HTTP_R_REDIRECTION_FROM_HTTPS_TO_HTTP 112
|
||||
# define HTTP_R_REDIRECTION_NOT_ENABLED 116
|
||||
# define HTTP_R_RESPONSE_LINE_TOO_LONG 113
|
||||
# define HTTP_R_SERVER_RESPONSE_PARSE_ERROR 104
|
||||
# define HTTP_R_SERVER_SENT_ERROR 105
|
||||
# define HTTP_R_SERVER_SENT_WRONG_HTTP_VERSION 106
|
||||
# define HTTP_R_STATUS_CODE_UNSUPPORTED 114
|
||||
# define HTTP_R_TLS_NOT_ENABLED 107
|
||||
# define HTTP_R_TOO_MANY_REDIRECTIONS 115
|
||||
# define HTTP_R_UNEXPECTED_CONTENT_TYPE 118
|
||||
|
||||
#endif
|
||||
@@ -127,9 +127,8 @@ void OPENSSL_LH_node_usage_stats_bio(const OPENSSL_LHASH *lh, BIO *out);
|
||||
|
||||
# define DEFINE_LHASH_OF(type) \
|
||||
LHASH_OF(type) { union lh_##type##_dummy { void* d1; unsigned long d2; int d3; } dummy; }; \
|
||||
static ossl_inline LHASH_OF(type) * \
|
||||
lh_##type##_new(unsigned long (*hfn)(const type *), \
|
||||
int (*cfn)(const type *, const type *)) \
|
||||
static ossl_unused ossl_inline LHASH_OF(type) *lh_##type##_new(unsigned long (*hfn)(const type *), \
|
||||
int (*cfn)(const type *, const type *)) \
|
||||
{ \
|
||||
return (LHASH_OF(type) *) \
|
||||
OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn); \
|
||||
|
||||
@@ -4859,7 +4859,7 @@
|
||||
|
||||
#define SN_chacha20_poly1305_draft "ChaCha20-Poly1305-D"
|
||||
#define LN_chacha20_poly1305_draft "chacha20-poly1305-draft"
|
||||
#define NID_chacha20_poly1305_draft 1212
|
||||
#define NID_chacha20_poly1305_draft 1218
|
||||
|
||||
#define SN_chacha20 "ChaCha20"
|
||||
#define LN_chacha20 "chacha20"
|
||||
@@ -5169,6 +5169,24 @@
|
||||
#define SN_ffdhe8192 "ffdhe8192"
|
||||
#define NID_ffdhe8192 1130
|
||||
|
||||
#define SN_modp_1536 "modp_1536"
|
||||
#define NID_modp_1536 1212
|
||||
|
||||
#define SN_modp_2048 "modp_2048"
|
||||
#define NID_modp_2048 1213
|
||||
|
||||
#define SN_modp_3072 "modp_3072"
|
||||
#define NID_modp_3072 1214
|
||||
|
||||
#define SN_modp_4096 "modp_4096"
|
||||
#define NID_modp_4096 1215
|
||||
|
||||
#define SN_modp_6144 "modp_6144"
|
||||
#define NID_modp_6144 1216
|
||||
|
||||
#define SN_modp_8192 "modp_8192"
|
||||
#define NID_modp_8192 1217
|
||||
|
||||
#define SN_ISO_UA "ISO-UA"
|
||||
#define NID_ISO_UA 1150
|
||||
#define OBJ_ISO_UA OBJ_member_body,804L
|
||||
|
||||
@@ -1,5276 +0,0 @@
|
||||
/*
|
||||
* WARNING: do not edit!
|
||||
* Generated by crypto/objects/objects.pl
|
||||
*
|
||||
* Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#define SN_undef "UNDEF"
|
||||
#define LN_undef "undefined"
|
||||
#define NID_undef 0
|
||||
#define OBJ_undef 0L
|
||||
|
||||
#define SN_itu_t "ITU-T"
|
||||
#define LN_itu_t "itu-t"
|
||||
#define NID_itu_t 645
|
||||
#define OBJ_itu_t 0L
|
||||
|
||||
#define NID_ccitt 404
|
||||
#define OBJ_ccitt OBJ_itu_t
|
||||
|
||||
#define SN_iso "ISO"
|
||||
#define LN_iso "iso"
|
||||
#define NID_iso 181
|
||||
#define OBJ_iso 1L
|
||||
|
||||
#define SN_joint_iso_itu_t "JOINT-ISO-ITU-T"
|
||||
#define LN_joint_iso_itu_t "joint-iso-itu-t"
|
||||
#define NID_joint_iso_itu_t 646
|
||||
#define OBJ_joint_iso_itu_t 2L
|
||||
|
||||
#define NID_joint_iso_ccitt 393
|
||||
#define OBJ_joint_iso_ccitt OBJ_joint_iso_itu_t
|
||||
|
||||
#define SN_member_body "member-body"
|
||||
#define LN_member_body "ISO Member Body"
|
||||
#define NID_member_body 182
|
||||
#define OBJ_member_body OBJ_iso,2L
|
||||
|
||||
#define SN_identified_organization "identified-organization"
|
||||
#define NID_identified_organization 676
|
||||
#define OBJ_identified_organization OBJ_iso,3L
|
||||
|
||||
#define SN_gmac "GMAC"
|
||||
#define LN_gmac "gmac"
|
||||
#define NID_gmac 1195
|
||||
#define OBJ_gmac OBJ_iso,0L,9797L,3L,4L
|
||||
|
||||
#define SN_hmac_md5 "HMAC-MD5"
|
||||
#define LN_hmac_md5 "hmac-md5"
|
||||
#define NID_hmac_md5 780
|
||||
#define OBJ_hmac_md5 OBJ_identified_organization,6L,1L,5L,5L,8L,1L,1L
|
||||
|
||||
#define SN_hmac_sha1 "HMAC-SHA1"
|
||||
#define LN_hmac_sha1 "hmac-sha1"
|
||||
#define NID_hmac_sha1 781
|
||||
#define OBJ_hmac_sha1 OBJ_identified_organization,6L,1L,5L,5L,8L,1L,2L
|
||||
|
||||
#define SN_x509ExtAdmission "x509ExtAdmission"
|
||||
#define LN_x509ExtAdmission "Professional Information or basis for Admission"
|
||||
#define NID_x509ExtAdmission 1093
|
||||
#define OBJ_x509ExtAdmission OBJ_identified_organization,36L,8L,3L,3L
|
||||
|
||||
#define SN_certicom_arc "certicom-arc"
|
||||
#define NID_certicom_arc 677
|
||||
#define OBJ_certicom_arc OBJ_identified_organization,132L
|
||||
|
||||
#define SN_ieee "ieee"
|
||||
#define NID_ieee 1170
|
||||
#define OBJ_ieee OBJ_identified_organization,111L
|
||||
|
||||
#define SN_ieee_siswg "ieee-siswg"
|
||||
#define LN_ieee_siswg "IEEE Security in Storage Working Group"
|
||||
#define NID_ieee_siswg 1171
|
||||
#define OBJ_ieee_siswg OBJ_ieee,2L,1619L
|
||||
|
||||
#define SN_international_organizations "international-organizations"
|
||||
#define LN_international_organizations "International Organizations"
|
||||
#define NID_international_organizations 647
|
||||
#define OBJ_international_organizations OBJ_joint_iso_itu_t,23L
|
||||
|
||||
#define SN_wap "wap"
|
||||
#define NID_wap 678
|
||||
#define OBJ_wap OBJ_international_organizations,43L
|
||||
|
||||
#define SN_wap_wsg "wap-wsg"
|
||||
#define NID_wap_wsg 679
|
||||
#define OBJ_wap_wsg OBJ_wap,1L
|
||||
|
||||
#define SN_selected_attribute_types "selected-attribute-types"
|
||||
#define LN_selected_attribute_types "Selected Attribute Types"
|
||||
#define NID_selected_attribute_types 394
|
||||
#define OBJ_selected_attribute_types OBJ_joint_iso_itu_t,5L,1L,5L
|
||||
|
||||
#define SN_clearance "clearance"
|
||||
#define NID_clearance 395
|
||||
#define OBJ_clearance OBJ_selected_attribute_types,55L
|
||||
|
||||
#define SN_ISO_US "ISO-US"
|
||||
#define LN_ISO_US "ISO US Member Body"
|
||||
#define NID_ISO_US 183
|
||||
#define OBJ_ISO_US OBJ_member_body,840L
|
||||
|
||||
#define SN_X9_57 "X9-57"
|
||||
#define LN_X9_57 "X9.57"
|
||||
#define NID_X9_57 184
|
||||
#define OBJ_X9_57 OBJ_ISO_US,10040L
|
||||
|
||||
#define SN_X9cm "X9cm"
|
||||
#define LN_X9cm "X9.57 CM ?"
|
||||
#define NID_X9cm 185
|
||||
#define OBJ_X9cm OBJ_X9_57,4L
|
||||
|
||||
#define SN_ISO_CN "ISO-CN"
|
||||
#define LN_ISO_CN "ISO CN Member Body"
|
||||
#define NID_ISO_CN 1140
|
||||
#define OBJ_ISO_CN OBJ_member_body,156L
|
||||
|
||||
#define SN_oscca "oscca"
|
||||
#define NID_oscca 1141
|
||||
#define OBJ_oscca OBJ_ISO_CN,10197L
|
||||
|
||||
#define SN_sm_scheme "sm-scheme"
|
||||
#define NID_sm_scheme 1142
|
||||
#define OBJ_sm_scheme OBJ_oscca,1L
|
||||
|
||||
#define SN_dsa "DSA"
|
||||
#define LN_dsa "dsaEncryption"
|
||||
#define NID_dsa 116
|
||||
#define OBJ_dsa OBJ_X9cm,1L
|
||||
|
||||
#define SN_dsaWithSHA1 "DSA-SHA1"
|
||||
#define LN_dsaWithSHA1 "dsaWithSHA1"
|
||||
#define NID_dsaWithSHA1 113
|
||||
#define OBJ_dsaWithSHA1 OBJ_X9cm,3L
|
||||
|
||||
#define SN_ansi_X9_62 "ansi-X9-62"
|
||||
#define LN_ansi_X9_62 "ANSI X9.62"
|
||||
#define NID_ansi_X9_62 405
|
||||
#define OBJ_ansi_X9_62 OBJ_ISO_US,10045L
|
||||
|
||||
#define OBJ_X9_62_id_fieldType OBJ_ansi_X9_62,1L
|
||||
|
||||
#define SN_X9_62_prime_field "prime-field"
|
||||
#define NID_X9_62_prime_field 406
|
||||
#define OBJ_X9_62_prime_field OBJ_X9_62_id_fieldType,1L
|
||||
|
||||
#define SN_X9_62_characteristic_two_field "characteristic-two-field"
|
||||
#define NID_X9_62_characteristic_two_field 407
|
||||
#define OBJ_X9_62_characteristic_two_field OBJ_X9_62_id_fieldType,2L
|
||||
|
||||
#define SN_X9_62_id_characteristic_two_basis "id-characteristic-two-basis"
|
||||
#define NID_X9_62_id_characteristic_two_basis 680
|
||||
#define OBJ_X9_62_id_characteristic_two_basis OBJ_X9_62_characteristic_two_field,3L
|
||||
|
||||
#define SN_X9_62_onBasis "onBasis"
|
||||
#define NID_X9_62_onBasis 681
|
||||
#define OBJ_X9_62_onBasis OBJ_X9_62_id_characteristic_two_basis,1L
|
||||
|
||||
#define SN_X9_62_tpBasis "tpBasis"
|
||||
#define NID_X9_62_tpBasis 682
|
||||
#define OBJ_X9_62_tpBasis OBJ_X9_62_id_characteristic_two_basis,2L
|
||||
|
||||
#define SN_X9_62_ppBasis "ppBasis"
|
||||
#define NID_X9_62_ppBasis 683
|
||||
#define OBJ_X9_62_ppBasis OBJ_X9_62_id_characteristic_two_basis,3L
|
||||
|
||||
#define OBJ_X9_62_id_publicKeyType OBJ_ansi_X9_62,2L
|
||||
|
||||
#define SN_X9_62_id_ecPublicKey "id-ecPublicKey"
|
||||
#define NID_X9_62_id_ecPublicKey 408
|
||||
#define OBJ_X9_62_id_ecPublicKey OBJ_X9_62_id_publicKeyType,1L
|
||||
|
||||
#define OBJ_X9_62_ellipticCurve OBJ_ansi_X9_62,3L
|
||||
|
||||
#define OBJ_X9_62_c_TwoCurve OBJ_X9_62_ellipticCurve,0L
|
||||
|
||||
#define SN_X9_62_c2pnb163v1 "c2pnb163v1"
|
||||
#define NID_X9_62_c2pnb163v1 684
|
||||
#define OBJ_X9_62_c2pnb163v1 OBJ_X9_62_c_TwoCurve,1L
|
||||
|
||||
#define SN_X9_62_c2pnb163v2 "c2pnb163v2"
|
||||
#define NID_X9_62_c2pnb163v2 685
|
||||
#define OBJ_X9_62_c2pnb163v2 OBJ_X9_62_c_TwoCurve,2L
|
||||
|
||||
#define SN_X9_62_c2pnb163v3 "c2pnb163v3"
|
||||
#define NID_X9_62_c2pnb163v3 686
|
||||
#define OBJ_X9_62_c2pnb163v3 OBJ_X9_62_c_TwoCurve,3L
|
||||
|
||||
#define SN_X9_62_c2pnb176v1 "c2pnb176v1"
|
||||
#define NID_X9_62_c2pnb176v1 687
|
||||
#define OBJ_X9_62_c2pnb176v1 OBJ_X9_62_c_TwoCurve,4L
|
||||
|
||||
#define SN_X9_62_c2tnb191v1 "c2tnb191v1"
|
||||
#define NID_X9_62_c2tnb191v1 688
|
||||
#define OBJ_X9_62_c2tnb191v1 OBJ_X9_62_c_TwoCurve,5L
|
||||
|
||||
#define SN_X9_62_c2tnb191v2 "c2tnb191v2"
|
||||
#define NID_X9_62_c2tnb191v2 689
|
||||
#define OBJ_X9_62_c2tnb191v2 OBJ_X9_62_c_TwoCurve,6L
|
||||
|
||||
#define SN_X9_62_c2tnb191v3 "c2tnb191v3"
|
||||
#define NID_X9_62_c2tnb191v3 690
|
||||
#define OBJ_X9_62_c2tnb191v3 OBJ_X9_62_c_TwoCurve,7L
|
||||
|
||||
#define SN_X9_62_c2onb191v4 "c2onb191v4"
|
||||
#define NID_X9_62_c2onb191v4 691
|
||||
#define OBJ_X9_62_c2onb191v4 OBJ_X9_62_c_TwoCurve,8L
|
||||
|
||||
#define SN_X9_62_c2onb191v5 "c2onb191v5"
|
||||
#define NID_X9_62_c2onb191v5 692
|
||||
#define OBJ_X9_62_c2onb191v5 OBJ_X9_62_c_TwoCurve,9L
|
||||
|
||||
#define SN_X9_62_c2pnb208w1 "c2pnb208w1"
|
||||
#define NID_X9_62_c2pnb208w1 693
|
||||
#define OBJ_X9_62_c2pnb208w1 OBJ_X9_62_c_TwoCurve,10L
|
||||
|
||||
#define SN_X9_62_c2tnb239v1 "c2tnb239v1"
|
||||
#define NID_X9_62_c2tnb239v1 694
|
||||
#define OBJ_X9_62_c2tnb239v1 OBJ_X9_62_c_TwoCurve,11L
|
||||
|
||||
#define SN_X9_62_c2tnb239v2 "c2tnb239v2"
|
||||
#define NID_X9_62_c2tnb239v2 695
|
||||
#define OBJ_X9_62_c2tnb239v2 OBJ_X9_62_c_TwoCurve,12L
|
||||
|
||||
#define SN_X9_62_c2tnb239v3 "c2tnb239v3"
|
||||
#define NID_X9_62_c2tnb239v3 696
|
||||
#define OBJ_X9_62_c2tnb239v3 OBJ_X9_62_c_TwoCurve,13L
|
||||
|
||||
#define SN_X9_62_c2onb239v4 "c2onb239v4"
|
||||
#define NID_X9_62_c2onb239v4 697
|
||||
#define OBJ_X9_62_c2onb239v4 OBJ_X9_62_c_TwoCurve,14L
|
||||
|
||||
#define SN_X9_62_c2onb239v5 "c2onb239v5"
|
||||
#define NID_X9_62_c2onb239v5 698
|
||||
#define OBJ_X9_62_c2onb239v5 OBJ_X9_62_c_TwoCurve,15L
|
||||
|
||||
#define SN_X9_62_c2pnb272w1 "c2pnb272w1"
|
||||
#define NID_X9_62_c2pnb272w1 699
|
||||
#define OBJ_X9_62_c2pnb272w1 OBJ_X9_62_c_TwoCurve,16L
|
||||
|
||||
#define SN_X9_62_c2pnb304w1 "c2pnb304w1"
|
||||
#define NID_X9_62_c2pnb304w1 700
|
||||
#define OBJ_X9_62_c2pnb304w1 OBJ_X9_62_c_TwoCurve,17L
|
||||
|
||||
#define SN_X9_62_c2tnb359v1 "c2tnb359v1"
|
||||
#define NID_X9_62_c2tnb359v1 701
|
||||
#define OBJ_X9_62_c2tnb359v1 OBJ_X9_62_c_TwoCurve,18L
|
||||
|
||||
#define SN_X9_62_c2pnb368w1 "c2pnb368w1"
|
||||
#define NID_X9_62_c2pnb368w1 702
|
||||
#define OBJ_X9_62_c2pnb368w1 OBJ_X9_62_c_TwoCurve,19L
|
||||
|
||||
#define SN_X9_62_c2tnb431r1 "c2tnb431r1"
|
||||
#define NID_X9_62_c2tnb431r1 703
|
||||
#define OBJ_X9_62_c2tnb431r1 OBJ_X9_62_c_TwoCurve,20L
|
||||
|
||||
#define OBJ_X9_62_primeCurve OBJ_X9_62_ellipticCurve,1L
|
||||
|
||||
#define SN_X9_62_prime192v1 "prime192v1"
|
||||
#define NID_X9_62_prime192v1 409
|
||||
#define OBJ_X9_62_prime192v1 OBJ_X9_62_primeCurve,1L
|
||||
|
||||
#define SN_X9_62_prime192v2 "prime192v2"
|
||||
#define NID_X9_62_prime192v2 410
|
||||
#define OBJ_X9_62_prime192v2 OBJ_X9_62_primeCurve,2L
|
||||
|
||||
#define SN_X9_62_prime192v3 "prime192v3"
|
||||
#define NID_X9_62_prime192v3 411
|
||||
#define OBJ_X9_62_prime192v3 OBJ_X9_62_primeCurve,3L
|
||||
|
||||
#define SN_X9_62_prime239v1 "prime239v1"
|
||||
#define NID_X9_62_prime239v1 412
|
||||
#define OBJ_X9_62_prime239v1 OBJ_X9_62_primeCurve,4L
|
||||
|
||||
#define SN_X9_62_prime239v2 "prime239v2"
|
||||
#define NID_X9_62_prime239v2 413
|
||||
#define OBJ_X9_62_prime239v2 OBJ_X9_62_primeCurve,5L
|
||||
|
||||
#define SN_X9_62_prime239v3 "prime239v3"
|
||||
#define NID_X9_62_prime239v3 414
|
||||
#define OBJ_X9_62_prime239v3 OBJ_X9_62_primeCurve,6L
|
||||
|
||||
#define SN_X9_62_prime256v1 "prime256v1"
|
||||
#define NID_X9_62_prime256v1 415
|
||||
#define OBJ_X9_62_prime256v1 OBJ_X9_62_primeCurve,7L
|
||||
|
||||
#define OBJ_X9_62_id_ecSigType OBJ_ansi_X9_62,4L
|
||||
|
||||
#define SN_ecdsa_with_SHA1 "ecdsa-with-SHA1"
|
||||
#define NID_ecdsa_with_SHA1 416
|
||||
#define OBJ_ecdsa_with_SHA1 OBJ_X9_62_id_ecSigType,1L
|
||||
|
||||
#define SN_ecdsa_with_Recommended "ecdsa-with-Recommended"
|
||||
#define NID_ecdsa_with_Recommended 791
|
||||
#define OBJ_ecdsa_with_Recommended OBJ_X9_62_id_ecSigType,2L
|
||||
|
||||
#define SN_ecdsa_with_Specified "ecdsa-with-Specified"
|
||||
#define NID_ecdsa_with_Specified 792
|
||||
#define OBJ_ecdsa_with_Specified OBJ_X9_62_id_ecSigType,3L
|
||||
|
||||
#define SN_ecdsa_with_SHA224 "ecdsa-with-SHA224"
|
||||
#define NID_ecdsa_with_SHA224 793
|
||||
#define OBJ_ecdsa_with_SHA224 OBJ_ecdsa_with_Specified,1L
|
||||
|
||||
#define SN_ecdsa_with_SHA256 "ecdsa-with-SHA256"
|
||||
#define NID_ecdsa_with_SHA256 794
|
||||
#define OBJ_ecdsa_with_SHA256 OBJ_ecdsa_with_Specified,2L
|
||||
|
||||
#define SN_ecdsa_with_SHA384 "ecdsa-with-SHA384"
|
||||
#define NID_ecdsa_with_SHA384 795
|
||||
#define OBJ_ecdsa_with_SHA384 OBJ_ecdsa_with_Specified,3L
|
||||
|
||||
#define SN_ecdsa_with_SHA512 "ecdsa-with-SHA512"
|
||||
#define NID_ecdsa_with_SHA512 796
|
||||
#define OBJ_ecdsa_with_SHA512 OBJ_ecdsa_with_Specified,4L
|
||||
|
||||
#define OBJ_secg_ellipticCurve OBJ_certicom_arc,0L
|
||||
|
||||
#define SN_secp112r1 "secp112r1"
|
||||
#define NID_secp112r1 704
|
||||
#define OBJ_secp112r1 OBJ_secg_ellipticCurve,6L
|
||||
|
||||
#define SN_secp112r2 "secp112r2"
|
||||
#define NID_secp112r2 705
|
||||
#define OBJ_secp112r2 OBJ_secg_ellipticCurve,7L
|
||||
|
||||
#define SN_secp128r1 "secp128r1"
|
||||
#define NID_secp128r1 706
|
||||
#define OBJ_secp128r1 OBJ_secg_ellipticCurve,28L
|
||||
|
||||
#define SN_secp128r2 "secp128r2"
|
||||
#define NID_secp128r2 707
|
||||
#define OBJ_secp128r2 OBJ_secg_ellipticCurve,29L
|
||||
|
||||
#define SN_secp160k1 "secp160k1"
|
||||
#define NID_secp160k1 708
|
||||
#define OBJ_secp160k1 OBJ_secg_ellipticCurve,9L
|
||||
|
||||
#define SN_secp160r1 "secp160r1"
|
||||
#define NID_secp160r1 709
|
||||
#define OBJ_secp160r1 OBJ_secg_ellipticCurve,8L
|
||||
|
||||
#define SN_secp160r2 "secp160r2"
|
||||
#define NID_secp160r2 710
|
||||
#define OBJ_secp160r2 OBJ_secg_ellipticCurve,30L
|
||||
|
||||
#define SN_secp192k1 "secp192k1"
|
||||
#define NID_secp192k1 711
|
||||
#define OBJ_secp192k1 OBJ_secg_ellipticCurve,31L
|
||||
|
||||
#define SN_secp224k1 "secp224k1"
|
||||
#define NID_secp224k1 712
|
||||
#define OBJ_secp224k1 OBJ_secg_ellipticCurve,32L
|
||||
|
||||
#define SN_secp224r1 "secp224r1"
|
||||
#define NID_secp224r1 713
|
||||
#define OBJ_secp224r1 OBJ_secg_ellipticCurve,33L
|
||||
|
||||
#define SN_secp256k1 "secp256k1"
|
||||
#define NID_secp256k1 714
|
||||
#define OBJ_secp256k1 OBJ_secg_ellipticCurve,10L
|
||||
|
||||
#define SN_secp384r1 "secp384r1"
|
||||
#define NID_secp384r1 715
|
||||
#define OBJ_secp384r1 OBJ_secg_ellipticCurve,34L
|
||||
|
||||
#define SN_secp521r1 "secp521r1"
|
||||
#define NID_secp521r1 716
|
||||
#define OBJ_secp521r1 OBJ_secg_ellipticCurve,35L
|
||||
|
||||
#define SN_sect113r1 "sect113r1"
|
||||
#define NID_sect113r1 717
|
||||
#define OBJ_sect113r1 OBJ_secg_ellipticCurve,4L
|
||||
|
||||
#define SN_sect113r2 "sect113r2"
|
||||
#define NID_sect113r2 718
|
||||
#define OBJ_sect113r2 OBJ_secg_ellipticCurve,5L
|
||||
|
||||
#define SN_sect131r1 "sect131r1"
|
||||
#define NID_sect131r1 719
|
||||
#define OBJ_sect131r1 OBJ_secg_ellipticCurve,22L
|
||||
|
||||
#define SN_sect131r2 "sect131r2"
|
||||
#define NID_sect131r2 720
|
||||
#define OBJ_sect131r2 OBJ_secg_ellipticCurve,23L
|
||||
|
||||
#define SN_sect163k1 "sect163k1"
|
||||
#define NID_sect163k1 721
|
||||
#define OBJ_sect163k1 OBJ_secg_ellipticCurve,1L
|
||||
|
||||
#define SN_sect163r1 "sect163r1"
|
||||
#define NID_sect163r1 722
|
||||
#define OBJ_sect163r1 OBJ_secg_ellipticCurve,2L
|
||||
|
||||
#define SN_sect163r2 "sect163r2"
|
||||
#define NID_sect163r2 723
|
||||
#define OBJ_sect163r2 OBJ_secg_ellipticCurve,15L
|
||||
|
||||
#define SN_sect193r1 "sect193r1"
|
||||
#define NID_sect193r1 724
|
||||
#define OBJ_sect193r1 OBJ_secg_ellipticCurve,24L
|
||||
|
||||
#define SN_sect193r2 "sect193r2"
|
||||
#define NID_sect193r2 725
|
||||
#define OBJ_sect193r2 OBJ_secg_ellipticCurve,25L
|
||||
|
||||
#define SN_sect233k1 "sect233k1"
|
||||
#define NID_sect233k1 726
|
||||
#define OBJ_sect233k1 OBJ_secg_ellipticCurve,26L
|
||||
|
||||
#define SN_sect233r1 "sect233r1"
|
||||
#define NID_sect233r1 727
|
||||
#define OBJ_sect233r1 OBJ_secg_ellipticCurve,27L
|
||||
|
||||
#define SN_sect239k1 "sect239k1"
|
||||
#define NID_sect239k1 728
|
||||
#define OBJ_sect239k1 OBJ_secg_ellipticCurve,3L
|
||||
|
||||
#define SN_sect283k1 "sect283k1"
|
||||
#define NID_sect283k1 729
|
||||
#define OBJ_sect283k1 OBJ_secg_ellipticCurve,16L
|
||||
|
||||
#define SN_sect283r1 "sect283r1"
|
||||
#define NID_sect283r1 730
|
||||
#define OBJ_sect283r1 OBJ_secg_ellipticCurve,17L
|
||||
|
||||
#define SN_sect409k1 "sect409k1"
|
||||
#define NID_sect409k1 731
|
||||
#define OBJ_sect409k1 OBJ_secg_ellipticCurve,36L
|
||||
|
||||
#define SN_sect409r1 "sect409r1"
|
||||
#define NID_sect409r1 732
|
||||
#define OBJ_sect409r1 OBJ_secg_ellipticCurve,37L
|
||||
|
||||
#define SN_sect571k1 "sect571k1"
|
||||
#define NID_sect571k1 733
|
||||
#define OBJ_sect571k1 OBJ_secg_ellipticCurve,38L
|
||||
|
||||
#define SN_sect571r1 "sect571r1"
|
||||
#define NID_sect571r1 734
|
||||
#define OBJ_sect571r1 OBJ_secg_ellipticCurve,39L
|
||||
|
||||
#define OBJ_wap_wsg_idm_ecid OBJ_wap_wsg,4L
|
||||
|
||||
#define SN_wap_wsg_idm_ecid_wtls1 "wap-wsg-idm-ecid-wtls1"
|
||||
#define NID_wap_wsg_idm_ecid_wtls1 735
|
||||
#define OBJ_wap_wsg_idm_ecid_wtls1 OBJ_wap_wsg_idm_ecid,1L
|
||||
|
||||
#define SN_wap_wsg_idm_ecid_wtls3 "wap-wsg-idm-ecid-wtls3"
|
||||
#define NID_wap_wsg_idm_ecid_wtls3 736
|
||||
#define OBJ_wap_wsg_idm_ecid_wtls3 OBJ_wap_wsg_idm_ecid,3L
|
||||
|
||||
#define SN_wap_wsg_idm_ecid_wtls4 "wap-wsg-idm-ecid-wtls4"
|
||||
#define NID_wap_wsg_idm_ecid_wtls4 737
|
||||
#define OBJ_wap_wsg_idm_ecid_wtls4 OBJ_wap_wsg_idm_ecid,4L
|
||||
|
||||
#define SN_wap_wsg_idm_ecid_wtls5 "wap-wsg-idm-ecid-wtls5"
|
||||
#define NID_wap_wsg_idm_ecid_wtls5 738
|
||||
#define OBJ_wap_wsg_idm_ecid_wtls5 OBJ_wap_wsg_idm_ecid,5L
|
||||
|
||||
#define SN_wap_wsg_idm_ecid_wtls6 "wap-wsg-idm-ecid-wtls6"
|
||||
#define NID_wap_wsg_idm_ecid_wtls6 739
|
||||
#define OBJ_wap_wsg_idm_ecid_wtls6 OBJ_wap_wsg_idm_ecid,6L
|
||||
|
||||
#define SN_wap_wsg_idm_ecid_wtls7 "wap-wsg-idm-ecid-wtls7"
|
||||
#define NID_wap_wsg_idm_ecid_wtls7 740
|
||||
#define OBJ_wap_wsg_idm_ecid_wtls7 OBJ_wap_wsg_idm_ecid,7L
|
||||
|
||||
#define SN_wap_wsg_idm_ecid_wtls8 "wap-wsg-idm-ecid-wtls8"
|
||||
#define NID_wap_wsg_idm_ecid_wtls8 741
|
||||
#define OBJ_wap_wsg_idm_ecid_wtls8 OBJ_wap_wsg_idm_ecid,8L
|
||||
|
||||
#define SN_wap_wsg_idm_ecid_wtls9 "wap-wsg-idm-ecid-wtls9"
|
||||
#define NID_wap_wsg_idm_ecid_wtls9 742
|
||||
#define OBJ_wap_wsg_idm_ecid_wtls9 OBJ_wap_wsg_idm_ecid,9L
|
||||
|
||||
#define SN_wap_wsg_idm_ecid_wtls10 "wap-wsg-idm-ecid-wtls10"
|
||||
#define NID_wap_wsg_idm_ecid_wtls10 743
|
||||
#define OBJ_wap_wsg_idm_ecid_wtls10 OBJ_wap_wsg_idm_ecid,10L
|
||||
|
||||
#define SN_wap_wsg_idm_ecid_wtls11 "wap-wsg-idm-ecid-wtls11"
|
||||
#define NID_wap_wsg_idm_ecid_wtls11 744
|
||||
#define OBJ_wap_wsg_idm_ecid_wtls11 OBJ_wap_wsg_idm_ecid,11L
|
||||
|
||||
#define SN_wap_wsg_idm_ecid_wtls12 "wap-wsg-idm-ecid-wtls12"
|
||||
#define NID_wap_wsg_idm_ecid_wtls12 745
|
||||
#define OBJ_wap_wsg_idm_ecid_wtls12 OBJ_wap_wsg_idm_ecid,12L
|
||||
|
||||
#define SN_cast5_cbc "CAST5-CBC"
|
||||
#define LN_cast5_cbc "cast5-cbc"
|
||||
#define NID_cast5_cbc 108
|
||||
#define OBJ_cast5_cbc OBJ_ISO_US,113533L,7L,66L,10L
|
||||
|
||||
#define SN_cast5_ecb "CAST5-ECB"
|
||||
#define LN_cast5_ecb "cast5-ecb"
|
||||
#define NID_cast5_ecb 109
|
||||
|
||||
#define SN_cast5_cfb64 "CAST5-CFB"
|
||||
#define LN_cast5_cfb64 "cast5-cfb"
|
||||
#define NID_cast5_cfb64 110
|
||||
|
||||
#define SN_cast5_ofb64 "CAST5-OFB"
|
||||
#define LN_cast5_ofb64 "cast5-ofb"
|
||||
#define NID_cast5_ofb64 111
|
||||
|
||||
#define LN_pbeWithMD5AndCast5_CBC "pbeWithMD5AndCast5CBC"
|
||||
#define NID_pbeWithMD5AndCast5_CBC 112
|
||||
#define OBJ_pbeWithMD5AndCast5_CBC OBJ_ISO_US,113533L,7L,66L,12L
|
||||
|
||||
#define SN_id_PasswordBasedMAC "id-PasswordBasedMAC"
|
||||
#define LN_id_PasswordBasedMAC "password based MAC"
|
||||
#define NID_id_PasswordBasedMAC 782
|
||||
#define OBJ_id_PasswordBasedMAC OBJ_ISO_US,113533L,7L,66L,13L
|
||||
|
||||
#define SN_id_DHBasedMac "id-DHBasedMac"
|
||||
#define LN_id_DHBasedMac "Diffie-Hellman based MAC"
|
||||
#define NID_id_DHBasedMac 783
|
||||
#define OBJ_id_DHBasedMac OBJ_ISO_US,113533L,7L,66L,30L
|
||||
|
||||
#define SN_rsadsi "rsadsi"
|
||||
#define LN_rsadsi "RSA Data Security, Inc."
|
||||
#define NID_rsadsi 1
|
||||
#define OBJ_rsadsi OBJ_ISO_US,113549L
|
||||
|
||||
#define SN_pkcs "pkcs"
|
||||
#define LN_pkcs "RSA Data Security, Inc. PKCS"
|
||||
#define NID_pkcs 2
|
||||
#define OBJ_pkcs OBJ_rsadsi,1L
|
||||
|
||||
#define SN_pkcs1 "pkcs1"
|
||||
#define NID_pkcs1 186
|
||||
#define OBJ_pkcs1 OBJ_pkcs,1L
|
||||
|
||||
#define LN_rsaEncryption "rsaEncryption"
|
||||
#define NID_rsaEncryption 6
|
||||
#define OBJ_rsaEncryption OBJ_pkcs1,1L
|
||||
|
||||
#define SN_md2WithRSAEncryption "RSA-MD2"
|
||||
#define LN_md2WithRSAEncryption "md2WithRSAEncryption"
|
||||
#define NID_md2WithRSAEncryption 7
|
||||
#define OBJ_md2WithRSAEncryption OBJ_pkcs1,2L
|
||||
|
||||
#define SN_md4WithRSAEncryption "RSA-MD4"
|
||||
#define LN_md4WithRSAEncryption "md4WithRSAEncryption"
|
||||
#define NID_md4WithRSAEncryption 396
|
||||
#define OBJ_md4WithRSAEncryption OBJ_pkcs1,3L
|
||||
|
||||
#define SN_md5WithRSAEncryption "RSA-MD5"
|
||||
#define LN_md5WithRSAEncryption "md5WithRSAEncryption"
|
||||
#define NID_md5WithRSAEncryption 8
|
||||
#define OBJ_md5WithRSAEncryption OBJ_pkcs1,4L
|
||||
|
||||
#define SN_sha1WithRSAEncryption "RSA-SHA1"
|
||||
#define LN_sha1WithRSAEncryption "sha1WithRSAEncryption"
|
||||
#define NID_sha1WithRSAEncryption 65
|
||||
#define OBJ_sha1WithRSAEncryption OBJ_pkcs1,5L
|
||||
|
||||
#define SN_rsaesOaep "RSAES-OAEP"
|
||||
#define LN_rsaesOaep "rsaesOaep"
|
||||
#define NID_rsaesOaep 919
|
||||
#define OBJ_rsaesOaep OBJ_pkcs1,7L
|
||||
|
||||
#define SN_mgf1 "MGF1"
|
||||
#define LN_mgf1 "mgf1"
|
||||
#define NID_mgf1 911
|
||||
#define OBJ_mgf1 OBJ_pkcs1,8L
|
||||
|
||||
#define SN_pSpecified "PSPECIFIED"
|
||||
#define LN_pSpecified "pSpecified"
|
||||
#define NID_pSpecified 935
|
||||
#define OBJ_pSpecified OBJ_pkcs1,9L
|
||||
|
||||
#define SN_rsassaPss "RSASSA-PSS"
|
||||
#define LN_rsassaPss "rsassaPss"
|
||||
#define NID_rsassaPss 912
|
||||
#define OBJ_rsassaPss OBJ_pkcs1,10L
|
||||
|
||||
#define SN_sha256WithRSAEncryption "RSA-SHA256"
|
||||
#define LN_sha256WithRSAEncryption "sha256WithRSAEncryption"
|
||||
#define NID_sha256WithRSAEncryption 668
|
||||
#define OBJ_sha256WithRSAEncryption OBJ_pkcs1,11L
|
||||
|
||||
#define SN_sha384WithRSAEncryption "RSA-SHA384"
|
||||
#define LN_sha384WithRSAEncryption "sha384WithRSAEncryption"
|
||||
#define NID_sha384WithRSAEncryption 669
|
||||
#define OBJ_sha384WithRSAEncryption OBJ_pkcs1,12L
|
||||
|
||||
#define SN_sha512WithRSAEncryption "RSA-SHA512"
|
||||
#define LN_sha512WithRSAEncryption "sha512WithRSAEncryption"
|
||||
#define NID_sha512WithRSAEncryption 670
|
||||
#define OBJ_sha512WithRSAEncryption OBJ_pkcs1,13L
|
||||
|
||||
#define SN_sha224WithRSAEncryption "RSA-SHA224"
|
||||
#define LN_sha224WithRSAEncryption "sha224WithRSAEncryption"
|
||||
#define NID_sha224WithRSAEncryption 671
|
||||
#define OBJ_sha224WithRSAEncryption OBJ_pkcs1,14L
|
||||
|
||||
#define SN_sha512_224WithRSAEncryption "RSA-SHA512/224"
|
||||
#define LN_sha512_224WithRSAEncryption "sha512-224WithRSAEncryption"
|
||||
#define NID_sha512_224WithRSAEncryption 1145
|
||||
#define OBJ_sha512_224WithRSAEncryption OBJ_pkcs1,15L
|
||||
|
||||
#define SN_sha512_256WithRSAEncryption "RSA-SHA512/256"
|
||||
#define LN_sha512_256WithRSAEncryption "sha512-256WithRSAEncryption"
|
||||
#define NID_sha512_256WithRSAEncryption 1146
|
||||
#define OBJ_sha512_256WithRSAEncryption OBJ_pkcs1,16L
|
||||
|
||||
#define SN_pkcs3 "pkcs3"
|
||||
#define NID_pkcs3 27
|
||||
#define OBJ_pkcs3 OBJ_pkcs,3L
|
||||
|
||||
#define LN_dhKeyAgreement "dhKeyAgreement"
|
||||
#define NID_dhKeyAgreement 28
|
||||
#define OBJ_dhKeyAgreement OBJ_pkcs3,1L
|
||||
|
||||
#define SN_pkcs5 "pkcs5"
|
||||
#define NID_pkcs5 187
|
||||
#define OBJ_pkcs5 OBJ_pkcs,5L
|
||||
|
||||
#define SN_pbeWithMD2AndDES_CBC "PBE-MD2-DES"
|
||||
#define LN_pbeWithMD2AndDES_CBC "pbeWithMD2AndDES-CBC"
|
||||
#define NID_pbeWithMD2AndDES_CBC 9
|
||||
#define OBJ_pbeWithMD2AndDES_CBC OBJ_pkcs5,1L
|
||||
|
||||
#define SN_pbeWithMD5AndDES_CBC "PBE-MD5-DES"
|
||||
#define LN_pbeWithMD5AndDES_CBC "pbeWithMD5AndDES-CBC"
|
||||
#define NID_pbeWithMD5AndDES_CBC 10
|
||||
#define OBJ_pbeWithMD5AndDES_CBC OBJ_pkcs5,3L
|
||||
|
||||
#define SN_pbeWithMD2AndRC2_CBC "PBE-MD2-RC2-64"
|
||||
#define LN_pbeWithMD2AndRC2_CBC "pbeWithMD2AndRC2-CBC"
|
||||
#define NID_pbeWithMD2AndRC2_CBC 168
|
||||
#define OBJ_pbeWithMD2AndRC2_CBC OBJ_pkcs5,4L
|
||||
|
||||
#define SN_pbeWithMD5AndRC2_CBC "PBE-MD5-RC2-64"
|
||||
#define LN_pbeWithMD5AndRC2_CBC "pbeWithMD5AndRC2-CBC"
|
||||
#define NID_pbeWithMD5AndRC2_CBC 169
|
||||
#define OBJ_pbeWithMD5AndRC2_CBC OBJ_pkcs5,6L
|
||||
|
||||
#define SN_pbeWithSHA1AndDES_CBC "PBE-SHA1-DES"
|
||||
#define LN_pbeWithSHA1AndDES_CBC "pbeWithSHA1AndDES-CBC"
|
||||
#define NID_pbeWithSHA1AndDES_CBC 170
|
||||
#define OBJ_pbeWithSHA1AndDES_CBC OBJ_pkcs5,10L
|
||||
|
||||
#define SN_pbeWithSHA1AndRC2_CBC "PBE-SHA1-RC2-64"
|
||||
#define LN_pbeWithSHA1AndRC2_CBC "pbeWithSHA1AndRC2-CBC"
|
||||
#define NID_pbeWithSHA1AndRC2_CBC 68
|
||||
#define OBJ_pbeWithSHA1AndRC2_CBC OBJ_pkcs5,11L
|
||||
|
||||
#define LN_id_pbkdf2 "PBKDF2"
|
||||
#define NID_id_pbkdf2 69
|
||||
#define OBJ_id_pbkdf2 OBJ_pkcs5,12L
|
||||
|
||||
#define LN_pbes2 "PBES2"
|
||||
#define NID_pbes2 161
|
||||
#define OBJ_pbes2 OBJ_pkcs5,13L
|
||||
|
||||
#define LN_pbmac1 "PBMAC1"
|
||||
#define NID_pbmac1 162
|
||||
#define OBJ_pbmac1 OBJ_pkcs5,14L
|
||||
|
||||
#define SN_pkcs7 "pkcs7"
|
||||
#define NID_pkcs7 20
|
||||
#define OBJ_pkcs7 OBJ_pkcs,7L
|
||||
|
||||
#define LN_pkcs7_data "pkcs7-data"
|
||||
#define NID_pkcs7_data 21
|
||||
#define OBJ_pkcs7_data OBJ_pkcs7,1L
|
||||
|
||||
#define LN_pkcs7_signed "pkcs7-signedData"
|
||||
#define NID_pkcs7_signed 22
|
||||
#define OBJ_pkcs7_signed OBJ_pkcs7,2L
|
||||
|
||||
#define LN_pkcs7_enveloped "pkcs7-envelopedData"
|
||||
#define NID_pkcs7_enveloped 23
|
||||
#define OBJ_pkcs7_enveloped OBJ_pkcs7,3L
|
||||
|
||||
#define LN_pkcs7_signedAndEnveloped "pkcs7-signedAndEnvelopedData"
|
||||
#define NID_pkcs7_signedAndEnveloped 24
|
||||
#define OBJ_pkcs7_signedAndEnveloped OBJ_pkcs7,4L
|
||||
|
||||
#define LN_pkcs7_digest "pkcs7-digestData"
|
||||
#define NID_pkcs7_digest 25
|
||||
#define OBJ_pkcs7_digest OBJ_pkcs7,5L
|
||||
|
||||
#define LN_pkcs7_encrypted "pkcs7-encryptedData"
|
||||
#define NID_pkcs7_encrypted 26
|
||||
#define OBJ_pkcs7_encrypted OBJ_pkcs7,6L
|
||||
|
||||
#define SN_pkcs9 "pkcs9"
|
||||
#define NID_pkcs9 47
|
||||
#define OBJ_pkcs9 OBJ_pkcs,9L
|
||||
|
||||
#define LN_pkcs9_emailAddress "emailAddress"
|
||||
#define NID_pkcs9_emailAddress 48
|
||||
#define OBJ_pkcs9_emailAddress OBJ_pkcs9,1L
|
||||
|
||||
#define LN_pkcs9_unstructuredName "unstructuredName"
|
||||
#define NID_pkcs9_unstructuredName 49
|
||||
#define OBJ_pkcs9_unstructuredName OBJ_pkcs9,2L
|
||||
|
||||
#define LN_pkcs9_contentType "contentType"
|
||||
#define NID_pkcs9_contentType 50
|
||||
#define OBJ_pkcs9_contentType OBJ_pkcs9,3L
|
||||
|
||||
#define LN_pkcs9_messageDigest "messageDigest"
|
||||
#define NID_pkcs9_messageDigest 51
|
||||
#define OBJ_pkcs9_messageDigest OBJ_pkcs9,4L
|
||||
|
||||
#define LN_pkcs9_signingTime "signingTime"
|
||||
#define NID_pkcs9_signingTime 52
|
||||
#define OBJ_pkcs9_signingTime OBJ_pkcs9,5L
|
||||
|
||||
#define LN_pkcs9_countersignature "countersignature"
|
||||
#define NID_pkcs9_countersignature 53
|
||||
#define OBJ_pkcs9_countersignature OBJ_pkcs9,6L
|
||||
|
||||
#define LN_pkcs9_challengePassword "challengePassword"
|
||||
#define NID_pkcs9_challengePassword 54
|
||||
#define OBJ_pkcs9_challengePassword OBJ_pkcs9,7L
|
||||
|
||||
#define LN_pkcs9_unstructuredAddress "unstructuredAddress"
|
||||
#define NID_pkcs9_unstructuredAddress 55
|
||||
#define OBJ_pkcs9_unstructuredAddress OBJ_pkcs9,8L
|
||||
|
||||
#define LN_pkcs9_extCertAttributes "extendedCertificateAttributes"
|
||||
#define NID_pkcs9_extCertAttributes 56
|
||||
#define OBJ_pkcs9_extCertAttributes OBJ_pkcs9,9L
|
||||
|
||||
#define SN_ext_req "extReq"
|
||||
#define LN_ext_req "Extension Request"
|
||||
#define NID_ext_req 172
|
||||
#define OBJ_ext_req OBJ_pkcs9,14L
|
||||
|
||||
#define SN_SMIMECapabilities "SMIME-CAPS"
|
||||
#define LN_SMIMECapabilities "S/MIME Capabilities"
|
||||
#define NID_SMIMECapabilities 167
|
||||
#define OBJ_SMIMECapabilities OBJ_pkcs9,15L
|
||||
|
||||
#define SN_SMIME "SMIME"
|
||||
#define LN_SMIME "S/MIME"
|
||||
#define NID_SMIME 188
|
||||
#define OBJ_SMIME OBJ_pkcs9,16L
|
||||
|
||||
#define SN_id_smime_mod "id-smime-mod"
|
||||
#define NID_id_smime_mod 189
|
||||
#define OBJ_id_smime_mod OBJ_SMIME,0L
|
||||
|
||||
#define SN_id_smime_ct "id-smime-ct"
|
||||
#define NID_id_smime_ct 190
|
||||
#define OBJ_id_smime_ct OBJ_SMIME,1L
|
||||
|
||||
#define SN_id_smime_aa "id-smime-aa"
|
||||
#define NID_id_smime_aa 191
|
||||
#define OBJ_id_smime_aa OBJ_SMIME,2L
|
||||
|
||||
#define SN_id_smime_alg "id-smime-alg"
|
||||
#define NID_id_smime_alg 192
|
||||
#define OBJ_id_smime_alg OBJ_SMIME,3L
|
||||
|
||||
#define SN_id_smime_cd "id-smime-cd"
|
||||
#define NID_id_smime_cd 193
|
||||
#define OBJ_id_smime_cd OBJ_SMIME,4L
|
||||
|
||||
#define SN_id_smime_spq "id-smime-spq"
|
||||
#define NID_id_smime_spq 194
|
||||
#define OBJ_id_smime_spq OBJ_SMIME,5L
|
||||
|
||||
#define SN_id_smime_cti "id-smime-cti"
|
||||
#define NID_id_smime_cti 195
|
||||
#define OBJ_id_smime_cti OBJ_SMIME,6L
|
||||
|
||||
#define SN_id_smime_mod_cms "id-smime-mod-cms"
|
||||
#define NID_id_smime_mod_cms 196
|
||||
#define OBJ_id_smime_mod_cms OBJ_id_smime_mod,1L
|
||||
|
||||
#define SN_id_smime_mod_ess "id-smime-mod-ess"
|
||||
#define NID_id_smime_mod_ess 197
|
||||
#define OBJ_id_smime_mod_ess OBJ_id_smime_mod,2L
|
||||
|
||||
#define SN_id_smime_mod_oid "id-smime-mod-oid"
|
||||
#define NID_id_smime_mod_oid 198
|
||||
#define OBJ_id_smime_mod_oid OBJ_id_smime_mod,3L
|
||||
|
||||
#define SN_id_smime_mod_msg_v3 "id-smime-mod-msg-v3"
|
||||
#define NID_id_smime_mod_msg_v3 199
|
||||
#define OBJ_id_smime_mod_msg_v3 OBJ_id_smime_mod,4L
|
||||
|
||||
#define SN_id_smime_mod_ets_eSignature_88 "id-smime-mod-ets-eSignature-88"
|
||||
#define NID_id_smime_mod_ets_eSignature_88 200
|
||||
#define OBJ_id_smime_mod_ets_eSignature_88 OBJ_id_smime_mod,5L
|
||||
|
||||
#define SN_id_smime_mod_ets_eSignature_97 "id-smime-mod-ets-eSignature-97"
|
||||
#define NID_id_smime_mod_ets_eSignature_97 201
|
||||
#define OBJ_id_smime_mod_ets_eSignature_97 OBJ_id_smime_mod,6L
|
||||
|
||||
#define SN_id_smime_mod_ets_eSigPolicy_88 "id-smime-mod-ets-eSigPolicy-88"
|
||||
#define NID_id_smime_mod_ets_eSigPolicy_88 202
|
||||
#define OBJ_id_smime_mod_ets_eSigPolicy_88 OBJ_id_smime_mod,7L
|
||||
|
||||
#define SN_id_smime_mod_ets_eSigPolicy_97 "id-smime-mod-ets-eSigPolicy-97"
|
||||
#define NID_id_smime_mod_ets_eSigPolicy_97 203
|
||||
#define OBJ_id_smime_mod_ets_eSigPolicy_97 OBJ_id_smime_mod,8L
|
||||
|
||||
#define SN_id_smime_ct_receipt "id-smime-ct-receipt"
|
||||
#define NID_id_smime_ct_receipt 204
|
||||
#define OBJ_id_smime_ct_receipt OBJ_id_smime_ct,1L
|
||||
|
||||
#define SN_id_smime_ct_authData "id-smime-ct-authData"
|
||||
#define NID_id_smime_ct_authData 205
|
||||
#define OBJ_id_smime_ct_authData OBJ_id_smime_ct,2L
|
||||
|
||||
#define SN_id_smime_ct_publishCert "id-smime-ct-publishCert"
|
||||
#define NID_id_smime_ct_publishCert 206
|
||||
#define OBJ_id_smime_ct_publishCert OBJ_id_smime_ct,3L
|
||||
|
||||
#define SN_id_smime_ct_TSTInfo "id-smime-ct-TSTInfo"
|
||||
#define NID_id_smime_ct_TSTInfo 207
|
||||
#define OBJ_id_smime_ct_TSTInfo OBJ_id_smime_ct,4L
|
||||
|
||||
#define SN_id_smime_ct_TDTInfo "id-smime-ct-TDTInfo"
|
||||
#define NID_id_smime_ct_TDTInfo 208
|
||||
#define OBJ_id_smime_ct_TDTInfo OBJ_id_smime_ct,5L
|
||||
|
||||
#define SN_id_smime_ct_contentInfo "id-smime-ct-contentInfo"
|
||||
#define NID_id_smime_ct_contentInfo 209
|
||||
#define OBJ_id_smime_ct_contentInfo OBJ_id_smime_ct,6L
|
||||
|
||||
#define SN_id_smime_ct_DVCSRequestData "id-smime-ct-DVCSRequestData"
|
||||
#define NID_id_smime_ct_DVCSRequestData 210
|
||||
#define OBJ_id_smime_ct_DVCSRequestData OBJ_id_smime_ct,7L
|
||||
|
||||
#define SN_id_smime_ct_DVCSResponseData "id-smime-ct-DVCSResponseData"
|
||||
#define NID_id_smime_ct_DVCSResponseData 211
|
||||
#define OBJ_id_smime_ct_DVCSResponseData OBJ_id_smime_ct,8L
|
||||
|
||||
#define SN_id_smime_ct_compressedData "id-smime-ct-compressedData"
|
||||
#define NID_id_smime_ct_compressedData 786
|
||||
#define OBJ_id_smime_ct_compressedData OBJ_id_smime_ct,9L
|
||||
|
||||
#define SN_id_smime_ct_contentCollection "id-smime-ct-contentCollection"
|
||||
#define NID_id_smime_ct_contentCollection 1058
|
||||
#define OBJ_id_smime_ct_contentCollection OBJ_id_smime_ct,19L
|
||||
|
||||
#define SN_id_smime_ct_authEnvelopedData "id-smime-ct-authEnvelopedData"
|
||||
#define NID_id_smime_ct_authEnvelopedData 1059
|
||||
#define OBJ_id_smime_ct_authEnvelopedData OBJ_id_smime_ct,23L
|
||||
|
||||
#define SN_id_ct_asciiTextWithCRLF "id-ct-asciiTextWithCRLF"
|
||||
#define NID_id_ct_asciiTextWithCRLF 787
|
||||
#define OBJ_id_ct_asciiTextWithCRLF OBJ_id_smime_ct,27L
|
||||
|
||||
#define SN_id_ct_xml "id-ct-xml"
|
||||
#define NID_id_ct_xml 1060
|
||||
#define OBJ_id_ct_xml OBJ_id_smime_ct,28L
|
||||
|
||||
#define SN_id_smime_aa_receiptRequest "id-smime-aa-receiptRequest"
|
||||
#define NID_id_smime_aa_receiptRequest 212
|
||||
#define OBJ_id_smime_aa_receiptRequest OBJ_id_smime_aa,1L
|
||||
|
||||
#define SN_id_smime_aa_securityLabel "id-smime-aa-securityLabel"
|
||||
#define NID_id_smime_aa_securityLabel 213
|
||||
#define OBJ_id_smime_aa_securityLabel OBJ_id_smime_aa,2L
|
||||
|
||||
#define SN_id_smime_aa_mlExpandHistory "id-smime-aa-mlExpandHistory"
|
||||
#define NID_id_smime_aa_mlExpandHistory 214
|
||||
#define OBJ_id_smime_aa_mlExpandHistory OBJ_id_smime_aa,3L
|
||||
|
||||
#define SN_id_smime_aa_contentHint "id-smime-aa-contentHint"
|
||||
#define NID_id_smime_aa_contentHint 215
|
||||
#define OBJ_id_smime_aa_contentHint OBJ_id_smime_aa,4L
|
||||
|
||||
#define SN_id_smime_aa_msgSigDigest "id-smime-aa-msgSigDigest"
|
||||
#define NID_id_smime_aa_msgSigDigest 216
|
||||
#define OBJ_id_smime_aa_msgSigDigest OBJ_id_smime_aa,5L
|
||||
|
||||
#define SN_id_smime_aa_encapContentType "id-smime-aa-encapContentType"
|
||||
#define NID_id_smime_aa_encapContentType 217
|
||||
#define OBJ_id_smime_aa_encapContentType OBJ_id_smime_aa,6L
|
||||
|
||||
#define SN_id_smime_aa_contentIdentifier "id-smime-aa-contentIdentifier"
|
||||
#define NID_id_smime_aa_contentIdentifier 218
|
||||
#define OBJ_id_smime_aa_contentIdentifier OBJ_id_smime_aa,7L
|
||||
|
||||
#define SN_id_smime_aa_macValue "id-smime-aa-macValue"
|
||||
#define NID_id_smime_aa_macValue 219
|
||||
#define OBJ_id_smime_aa_macValue OBJ_id_smime_aa,8L
|
||||
|
||||
#define SN_id_smime_aa_equivalentLabels "id-smime-aa-equivalentLabels"
|
||||
#define NID_id_smime_aa_equivalentLabels 220
|
||||
#define OBJ_id_smime_aa_equivalentLabels OBJ_id_smime_aa,9L
|
||||
|
||||
#define SN_id_smime_aa_contentReference "id-smime-aa-contentReference"
|
||||
#define NID_id_smime_aa_contentReference 221
|
||||
#define OBJ_id_smime_aa_contentReference OBJ_id_smime_aa,10L
|
||||
|
||||
#define SN_id_smime_aa_encrypKeyPref "id-smime-aa-encrypKeyPref"
|
||||
#define NID_id_smime_aa_encrypKeyPref 222
|
||||
#define OBJ_id_smime_aa_encrypKeyPref OBJ_id_smime_aa,11L
|
||||
|
||||
#define SN_id_smime_aa_signingCertificate "id-smime-aa-signingCertificate"
|
||||
#define NID_id_smime_aa_signingCertificate 223
|
||||
#define OBJ_id_smime_aa_signingCertificate OBJ_id_smime_aa,12L
|
||||
|
||||
#define SN_id_smime_aa_smimeEncryptCerts "id-smime-aa-smimeEncryptCerts"
|
||||
#define NID_id_smime_aa_smimeEncryptCerts 224
|
||||
#define OBJ_id_smime_aa_smimeEncryptCerts OBJ_id_smime_aa,13L
|
||||
|
||||
#define SN_id_smime_aa_timeStampToken "id-smime-aa-timeStampToken"
|
||||
#define NID_id_smime_aa_timeStampToken 225
|
||||
#define OBJ_id_smime_aa_timeStampToken OBJ_id_smime_aa,14L
|
||||
|
||||
#define SN_id_smime_aa_ets_sigPolicyId "id-smime-aa-ets-sigPolicyId"
|
||||
#define NID_id_smime_aa_ets_sigPolicyId 226
|
||||
#define OBJ_id_smime_aa_ets_sigPolicyId OBJ_id_smime_aa,15L
|
||||
|
||||
#define SN_id_smime_aa_ets_commitmentType "id-smime-aa-ets-commitmentType"
|
||||
#define NID_id_smime_aa_ets_commitmentType 227
|
||||
#define OBJ_id_smime_aa_ets_commitmentType OBJ_id_smime_aa,16L
|
||||
|
||||
#define SN_id_smime_aa_ets_signerLocation "id-smime-aa-ets-signerLocation"
|
||||
#define NID_id_smime_aa_ets_signerLocation 228
|
||||
#define OBJ_id_smime_aa_ets_signerLocation OBJ_id_smime_aa,17L
|
||||
|
||||
#define SN_id_smime_aa_ets_signerAttr "id-smime-aa-ets-signerAttr"
|
||||
#define NID_id_smime_aa_ets_signerAttr 229
|
||||
#define OBJ_id_smime_aa_ets_signerAttr OBJ_id_smime_aa,18L
|
||||
|
||||
#define SN_id_smime_aa_ets_otherSigCert "id-smime-aa-ets-otherSigCert"
|
||||
#define NID_id_smime_aa_ets_otherSigCert 230
|
||||
#define OBJ_id_smime_aa_ets_otherSigCert OBJ_id_smime_aa,19L
|
||||
|
||||
#define SN_id_smime_aa_ets_contentTimestamp "id-smime-aa-ets-contentTimestamp"
|
||||
#define NID_id_smime_aa_ets_contentTimestamp 231
|
||||
#define OBJ_id_smime_aa_ets_contentTimestamp OBJ_id_smime_aa,20L
|
||||
|
||||
#define SN_id_smime_aa_ets_CertificateRefs "id-smime-aa-ets-CertificateRefs"
|
||||
#define NID_id_smime_aa_ets_CertificateRefs 232
|
||||
#define OBJ_id_smime_aa_ets_CertificateRefs OBJ_id_smime_aa,21L
|
||||
|
||||
#define SN_id_smime_aa_ets_RevocationRefs "id-smime-aa-ets-RevocationRefs"
|
||||
#define NID_id_smime_aa_ets_RevocationRefs 233
|
||||
#define OBJ_id_smime_aa_ets_RevocationRefs OBJ_id_smime_aa,22L
|
||||
|
||||
#define SN_id_smime_aa_ets_certValues "id-smime-aa-ets-certValues"
|
||||
#define NID_id_smime_aa_ets_certValues 234
|
||||
#define OBJ_id_smime_aa_ets_certValues OBJ_id_smime_aa,23L
|
||||
|
||||
#define SN_id_smime_aa_ets_revocationValues "id-smime-aa-ets-revocationValues"
|
||||
#define NID_id_smime_aa_ets_revocationValues 235
|
||||
#define OBJ_id_smime_aa_ets_revocationValues OBJ_id_smime_aa,24L
|
||||
|
||||
#define SN_id_smime_aa_ets_escTimeStamp "id-smime-aa-ets-escTimeStamp"
|
||||
#define NID_id_smime_aa_ets_escTimeStamp 236
|
||||
#define OBJ_id_smime_aa_ets_escTimeStamp OBJ_id_smime_aa,25L
|
||||
|
||||
#define SN_id_smime_aa_ets_certCRLTimestamp "id-smime-aa-ets-certCRLTimestamp"
|
||||
#define NID_id_smime_aa_ets_certCRLTimestamp 237
|
||||
#define OBJ_id_smime_aa_ets_certCRLTimestamp OBJ_id_smime_aa,26L
|
||||
|
||||
#define SN_id_smime_aa_ets_archiveTimeStamp "id-smime-aa-ets-archiveTimeStamp"
|
||||
#define NID_id_smime_aa_ets_archiveTimeStamp 238
|
||||
#define OBJ_id_smime_aa_ets_archiveTimeStamp OBJ_id_smime_aa,27L
|
||||
|
||||
#define SN_id_smime_aa_signatureType "id-smime-aa-signatureType"
|
||||
#define NID_id_smime_aa_signatureType 239
|
||||
#define OBJ_id_smime_aa_signatureType OBJ_id_smime_aa,28L
|
||||
|
||||
#define SN_id_smime_aa_dvcs_dvc "id-smime-aa-dvcs-dvc"
|
||||
#define NID_id_smime_aa_dvcs_dvc 240
|
||||
#define OBJ_id_smime_aa_dvcs_dvc OBJ_id_smime_aa,29L
|
||||
|
||||
#define SN_id_smime_aa_signingCertificateV2 "id-smime-aa-signingCertificateV2"
|
||||
#define NID_id_smime_aa_signingCertificateV2 1086
|
||||
#define OBJ_id_smime_aa_signingCertificateV2 OBJ_id_smime_aa,47L
|
||||
|
||||
#define SN_id_smime_alg_ESDHwith3DES "id-smime-alg-ESDHwith3DES"
|
||||
#define NID_id_smime_alg_ESDHwith3DES 241
|
||||
#define OBJ_id_smime_alg_ESDHwith3DES OBJ_id_smime_alg,1L
|
||||
|
||||
#define SN_id_smime_alg_ESDHwithRC2 "id-smime-alg-ESDHwithRC2"
|
||||
#define NID_id_smime_alg_ESDHwithRC2 242
|
||||
#define OBJ_id_smime_alg_ESDHwithRC2 OBJ_id_smime_alg,2L
|
||||
|
||||
#define SN_id_smime_alg_3DESwrap "id-smime-alg-3DESwrap"
|
||||
#define NID_id_smime_alg_3DESwrap 243
|
||||
#define OBJ_id_smime_alg_3DESwrap OBJ_id_smime_alg,3L
|
||||
|
||||
#define SN_id_smime_alg_RC2wrap "id-smime-alg-RC2wrap"
|
||||
#define NID_id_smime_alg_RC2wrap 244
|
||||
#define OBJ_id_smime_alg_RC2wrap OBJ_id_smime_alg,4L
|
||||
|
||||
#define SN_id_smime_alg_ESDH "id-smime-alg-ESDH"
|
||||
#define NID_id_smime_alg_ESDH 245
|
||||
#define OBJ_id_smime_alg_ESDH OBJ_id_smime_alg,5L
|
||||
|
||||
#define SN_id_smime_alg_CMS3DESwrap "id-smime-alg-CMS3DESwrap"
|
||||
#define NID_id_smime_alg_CMS3DESwrap 246
|
||||
#define OBJ_id_smime_alg_CMS3DESwrap OBJ_id_smime_alg,6L
|
||||
|
||||
#define SN_id_smime_alg_CMSRC2wrap "id-smime-alg-CMSRC2wrap"
|
||||
#define NID_id_smime_alg_CMSRC2wrap 247
|
||||
#define OBJ_id_smime_alg_CMSRC2wrap OBJ_id_smime_alg,7L
|
||||
|
||||
#define SN_id_alg_PWRI_KEK "id-alg-PWRI-KEK"
|
||||
#define NID_id_alg_PWRI_KEK 893
|
||||
#define OBJ_id_alg_PWRI_KEK OBJ_id_smime_alg,9L
|
||||
|
||||
#define SN_id_smime_cd_ldap "id-smime-cd-ldap"
|
||||
#define NID_id_smime_cd_ldap 248
|
||||
#define OBJ_id_smime_cd_ldap OBJ_id_smime_cd,1L
|
||||
|
||||
#define SN_id_smime_spq_ets_sqt_uri "id-smime-spq-ets-sqt-uri"
|
||||
#define NID_id_smime_spq_ets_sqt_uri 249
|
||||
#define OBJ_id_smime_spq_ets_sqt_uri OBJ_id_smime_spq,1L
|
||||
|
||||
#define SN_id_smime_spq_ets_sqt_unotice "id-smime-spq-ets-sqt-unotice"
|
||||
#define NID_id_smime_spq_ets_sqt_unotice 250
|
||||
#define OBJ_id_smime_spq_ets_sqt_unotice OBJ_id_smime_spq,2L
|
||||
|
||||
#define SN_id_smime_cti_ets_proofOfOrigin "id-smime-cti-ets-proofOfOrigin"
|
||||
#define NID_id_smime_cti_ets_proofOfOrigin 251
|
||||
#define OBJ_id_smime_cti_ets_proofOfOrigin OBJ_id_smime_cti,1L
|
||||
|
||||
#define SN_id_smime_cti_ets_proofOfReceipt "id-smime-cti-ets-proofOfReceipt"
|
||||
#define NID_id_smime_cti_ets_proofOfReceipt 252
|
||||
#define OBJ_id_smime_cti_ets_proofOfReceipt OBJ_id_smime_cti,2L
|
||||
|
||||
#define SN_id_smime_cti_ets_proofOfDelivery "id-smime-cti-ets-proofOfDelivery"
|
||||
#define NID_id_smime_cti_ets_proofOfDelivery 253
|
||||
#define OBJ_id_smime_cti_ets_proofOfDelivery OBJ_id_smime_cti,3L
|
||||
|
||||
#define SN_id_smime_cti_ets_proofOfSender "id-smime-cti-ets-proofOfSender"
|
||||
#define NID_id_smime_cti_ets_proofOfSender 254
|
||||
#define OBJ_id_smime_cti_ets_proofOfSender OBJ_id_smime_cti,4L
|
||||
|
||||
#define SN_id_smime_cti_ets_proofOfApproval "id-smime-cti-ets-proofOfApproval"
|
||||
#define NID_id_smime_cti_ets_proofOfApproval 255
|
||||
#define OBJ_id_smime_cti_ets_proofOfApproval OBJ_id_smime_cti,5L
|
||||
|
||||
#define SN_id_smime_cti_ets_proofOfCreation "id-smime-cti-ets-proofOfCreation"
|
||||
#define NID_id_smime_cti_ets_proofOfCreation 256
|
||||
#define OBJ_id_smime_cti_ets_proofOfCreation OBJ_id_smime_cti,6L
|
||||
|
||||
#define LN_friendlyName "friendlyName"
|
||||
#define NID_friendlyName 156
|
||||
#define OBJ_friendlyName OBJ_pkcs9,20L
|
||||
|
||||
#define LN_localKeyID "localKeyID"
|
||||
#define NID_localKeyID 157
|
||||
#define OBJ_localKeyID OBJ_pkcs9,21L
|
||||
|
||||
#define SN_ms_csp_name "CSPName"
|
||||
#define LN_ms_csp_name "Microsoft CSP Name"
|
||||
#define NID_ms_csp_name 417
|
||||
#define OBJ_ms_csp_name 1L,3L,6L,1L,4L,1L,311L,17L,1L
|
||||
|
||||
#define SN_LocalKeySet "LocalKeySet"
|
||||
#define LN_LocalKeySet "Microsoft Local Key set"
|
||||
#define NID_LocalKeySet 856
|
||||
#define OBJ_LocalKeySet 1L,3L,6L,1L,4L,1L,311L,17L,2L
|
||||
|
||||
#define OBJ_certTypes OBJ_pkcs9,22L
|
||||
|
||||
#define LN_x509Certificate "x509Certificate"
|
||||
#define NID_x509Certificate 158
|
||||
#define OBJ_x509Certificate OBJ_certTypes,1L
|
||||
|
||||
#define LN_sdsiCertificate "sdsiCertificate"
|
||||
#define NID_sdsiCertificate 159
|
||||
#define OBJ_sdsiCertificate OBJ_certTypes,2L
|
||||
|
||||
#define OBJ_crlTypes OBJ_pkcs9,23L
|
||||
|
||||
#define LN_x509Crl "x509Crl"
|
||||
#define NID_x509Crl 160
|
||||
#define OBJ_x509Crl OBJ_crlTypes,1L
|
||||
|
||||
#define OBJ_pkcs12 OBJ_pkcs,12L
|
||||
|
||||
#define OBJ_pkcs12_pbeids OBJ_pkcs12,1L
|
||||
|
||||
#define SN_pbe_WithSHA1And128BitRC4 "PBE-SHA1-RC4-128"
|
||||
#define LN_pbe_WithSHA1And128BitRC4 "pbeWithSHA1And128BitRC4"
|
||||
#define NID_pbe_WithSHA1And128BitRC4 144
|
||||
#define OBJ_pbe_WithSHA1And128BitRC4 OBJ_pkcs12_pbeids,1L
|
||||
|
||||
#define SN_pbe_WithSHA1And40BitRC4 "PBE-SHA1-RC4-40"
|
||||
#define LN_pbe_WithSHA1And40BitRC4 "pbeWithSHA1And40BitRC4"
|
||||
#define NID_pbe_WithSHA1And40BitRC4 145
|
||||
#define OBJ_pbe_WithSHA1And40BitRC4 OBJ_pkcs12_pbeids,2L
|
||||
|
||||
#define SN_pbe_WithSHA1And3_Key_TripleDES_CBC "PBE-SHA1-3DES"
|
||||
#define LN_pbe_WithSHA1And3_Key_TripleDES_CBC "pbeWithSHA1And3-KeyTripleDES-CBC"
|
||||
#define NID_pbe_WithSHA1And3_Key_TripleDES_CBC 146
|
||||
#define OBJ_pbe_WithSHA1And3_Key_TripleDES_CBC OBJ_pkcs12_pbeids,3L
|
||||
|
||||
#define SN_pbe_WithSHA1And2_Key_TripleDES_CBC "PBE-SHA1-2DES"
|
||||
#define LN_pbe_WithSHA1And2_Key_TripleDES_CBC "pbeWithSHA1And2-KeyTripleDES-CBC"
|
||||
#define NID_pbe_WithSHA1And2_Key_TripleDES_CBC 147
|
||||
#define OBJ_pbe_WithSHA1And2_Key_TripleDES_CBC OBJ_pkcs12_pbeids,4L
|
||||
|
||||
#define SN_pbe_WithSHA1And128BitRC2_CBC "PBE-SHA1-RC2-128"
|
||||
#define LN_pbe_WithSHA1And128BitRC2_CBC "pbeWithSHA1And128BitRC2-CBC"
|
||||
#define NID_pbe_WithSHA1And128BitRC2_CBC 148
|
||||
#define OBJ_pbe_WithSHA1And128BitRC2_CBC OBJ_pkcs12_pbeids,5L
|
||||
|
||||
#define SN_pbe_WithSHA1And40BitRC2_CBC "PBE-SHA1-RC2-40"
|
||||
#define LN_pbe_WithSHA1And40BitRC2_CBC "pbeWithSHA1And40BitRC2-CBC"
|
||||
#define NID_pbe_WithSHA1And40BitRC2_CBC 149
|
||||
#define OBJ_pbe_WithSHA1And40BitRC2_CBC OBJ_pkcs12_pbeids,6L
|
||||
|
||||
#define OBJ_pkcs12_Version1 OBJ_pkcs12,10L
|
||||
|
||||
#define OBJ_pkcs12_BagIds OBJ_pkcs12_Version1,1L
|
||||
|
||||
#define LN_keyBag "keyBag"
|
||||
#define NID_keyBag 150
|
||||
#define OBJ_keyBag OBJ_pkcs12_BagIds,1L
|
||||
|
||||
#define LN_pkcs8ShroudedKeyBag "pkcs8ShroudedKeyBag"
|
||||
#define NID_pkcs8ShroudedKeyBag 151
|
||||
#define OBJ_pkcs8ShroudedKeyBag OBJ_pkcs12_BagIds,2L
|
||||
|
||||
#define LN_certBag "certBag"
|
||||
#define NID_certBag 152
|
||||
#define OBJ_certBag OBJ_pkcs12_BagIds,3L
|
||||
|
||||
#define LN_crlBag "crlBag"
|
||||
#define NID_crlBag 153
|
||||
#define OBJ_crlBag OBJ_pkcs12_BagIds,4L
|
||||
|
||||
#define LN_secretBag "secretBag"
|
||||
#define NID_secretBag 154
|
||||
#define OBJ_secretBag OBJ_pkcs12_BagIds,5L
|
||||
|
||||
#define LN_safeContentsBag "safeContentsBag"
|
||||
#define NID_safeContentsBag 155
|
||||
#define OBJ_safeContentsBag OBJ_pkcs12_BagIds,6L
|
||||
|
||||
#define SN_md2 "MD2"
|
||||
#define LN_md2 "md2"
|
||||
#define NID_md2 3
|
||||
#define OBJ_md2 OBJ_rsadsi,2L,2L
|
||||
|
||||
#define SN_md4 "MD4"
|
||||
#define LN_md4 "md4"
|
||||
#define NID_md4 257
|
||||
#define OBJ_md4 OBJ_rsadsi,2L,4L
|
||||
|
||||
#define SN_md5 "MD5"
|
||||
#define LN_md5 "md5"
|
||||
#define NID_md5 4
|
||||
#define OBJ_md5 OBJ_rsadsi,2L,5L
|
||||
|
||||
#define SN_md5_sha1 "MD5-SHA1"
|
||||
#define LN_md5_sha1 "md5-sha1"
|
||||
#define NID_md5_sha1 114
|
||||
|
||||
#define LN_hmacWithMD5 "hmacWithMD5"
|
||||
#define NID_hmacWithMD5 797
|
||||
#define OBJ_hmacWithMD5 OBJ_rsadsi,2L,6L
|
||||
|
||||
#define LN_hmacWithSHA1 "hmacWithSHA1"
|
||||
#define NID_hmacWithSHA1 163
|
||||
#define OBJ_hmacWithSHA1 OBJ_rsadsi,2L,7L
|
||||
|
||||
#define SN_sm2 "SM2"
|
||||
#define LN_sm2 "sm2"
|
||||
#define NID_sm2 1172
|
||||
#define OBJ_sm2 OBJ_sm_scheme,301L
|
||||
|
||||
#define SN_sm3 "SM3"
|
||||
#define LN_sm3 "sm3"
|
||||
#define NID_sm3 1143
|
||||
#define OBJ_sm3 OBJ_sm_scheme,401L
|
||||
|
||||
#define SN_sm3WithRSAEncryption "RSA-SM3"
|
||||
#define LN_sm3WithRSAEncryption "sm3WithRSAEncryption"
|
||||
#define NID_sm3WithRSAEncryption 1144
|
||||
#define OBJ_sm3WithRSAEncryption OBJ_sm_scheme,504L
|
||||
|
||||
#define SN_SM2_with_SM3 "SM2-SM3"
|
||||
#define LN_SM2_with_SM3 "SM2-with-SM3"
|
||||
#define NID_SM2_with_SM3 1204
|
||||
#define OBJ_SM2_with_SM3 OBJ_sm_scheme,501L
|
||||
|
||||
#define LN_hmacWithSHA224 "hmacWithSHA224"
|
||||
#define NID_hmacWithSHA224 798
|
||||
#define OBJ_hmacWithSHA224 OBJ_rsadsi,2L,8L
|
||||
|
||||
#define LN_hmacWithSHA256 "hmacWithSHA256"
|
||||
#define NID_hmacWithSHA256 799
|
||||
#define OBJ_hmacWithSHA256 OBJ_rsadsi,2L,9L
|
||||
|
||||
#define LN_hmacWithSHA384 "hmacWithSHA384"
|
||||
#define NID_hmacWithSHA384 800
|
||||
#define OBJ_hmacWithSHA384 OBJ_rsadsi,2L,10L
|
||||
|
||||
#define LN_hmacWithSHA512 "hmacWithSHA512"
|
||||
#define NID_hmacWithSHA512 801
|
||||
#define OBJ_hmacWithSHA512 OBJ_rsadsi,2L,11L
|
||||
|
||||
#define LN_hmacWithSHA512_224 "hmacWithSHA512-224"
|
||||
#define NID_hmacWithSHA512_224 1193
|
||||
#define OBJ_hmacWithSHA512_224 OBJ_rsadsi,2L,12L
|
||||
|
||||
#define LN_hmacWithSHA512_256 "hmacWithSHA512-256"
|
||||
#define NID_hmacWithSHA512_256 1194
|
||||
#define OBJ_hmacWithSHA512_256 OBJ_rsadsi,2L,13L
|
||||
|
||||
#define SN_rc2_cbc "RC2-CBC"
|
||||
#define LN_rc2_cbc "rc2-cbc"
|
||||
#define NID_rc2_cbc 37
|
||||
#define OBJ_rc2_cbc OBJ_rsadsi,3L,2L
|
||||
|
||||
#define SN_rc2_ecb "RC2-ECB"
|
||||
#define LN_rc2_ecb "rc2-ecb"
|
||||
#define NID_rc2_ecb 38
|
||||
|
||||
#define SN_rc2_cfb64 "RC2-CFB"
|
||||
#define LN_rc2_cfb64 "rc2-cfb"
|
||||
#define NID_rc2_cfb64 39
|
||||
|
||||
#define SN_rc2_ofb64 "RC2-OFB"
|
||||
#define LN_rc2_ofb64 "rc2-ofb"
|
||||
#define NID_rc2_ofb64 40
|
||||
|
||||
#define SN_rc2_40_cbc "RC2-40-CBC"
|
||||
#define LN_rc2_40_cbc "rc2-40-cbc"
|
||||
#define NID_rc2_40_cbc 98
|
||||
|
||||
#define SN_rc2_64_cbc "RC2-64-CBC"
|
||||
#define LN_rc2_64_cbc "rc2-64-cbc"
|
||||
#define NID_rc2_64_cbc 166
|
||||
|
||||
#define SN_rc4 "RC4"
|
||||
#define LN_rc4 "rc4"
|
||||
#define NID_rc4 5
|
||||
#define OBJ_rc4 OBJ_rsadsi,3L,4L
|
||||
|
||||
#define SN_rc4_40 "RC4-40"
|
||||
#define LN_rc4_40 "rc4-40"
|
||||
#define NID_rc4_40 97
|
||||
|
||||
#define SN_des_ede3_cbc "DES-EDE3-CBC"
|
||||
#define LN_des_ede3_cbc "des-ede3-cbc"
|
||||
#define NID_des_ede3_cbc 44
|
||||
#define OBJ_des_ede3_cbc OBJ_rsadsi,3L,7L
|
||||
|
||||
#define SN_rc5_cbc "RC5-CBC"
|
||||
#define LN_rc5_cbc "rc5-cbc"
|
||||
#define NID_rc5_cbc 120
|
||||
#define OBJ_rc5_cbc OBJ_rsadsi,3L,8L
|
||||
|
||||
#define SN_rc5_ecb "RC5-ECB"
|
||||
#define LN_rc5_ecb "rc5-ecb"
|
||||
#define NID_rc5_ecb 121
|
||||
|
||||
#define SN_rc5_cfb64 "RC5-CFB"
|
||||
#define LN_rc5_cfb64 "rc5-cfb"
|
||||
#define NID_rc5_cfb64 122
|
||||
|
||||
#define SN_rc5_ofb64 "RC5-OFB"
|
||||
#define LN_rc5_ofb64 "rc5-ofb"
|
||||
#define NID_rc5_ofb64 123
|
||||
|
||||
#define SN_ms_ext_req "msExtReq"
|
||||
#define LN_ms_ext_req "Microsoft Extension Request"
|
||||
#define NID_ms_ext_req 171
|
||||
#define OBJ_ms_ext_req 1L,3L,6L,1L,4L,1L,311L,2L,1L,14L
|
||||
|
||||
#define SN_ms_code_ind "msCodeInd"
|
||||
#define LN_ms_code_ind "Microsoft Individual Code Signing"
|
||||
#define NID_ms_code_ind 134
|
||||
#define OBJ_ms_code_ind 1L,3L,6L,1L,4L,1L,311L,2L,1L,21L
|
||||
|
||||
#define SN_ms_code_com "msCodeCom"
|
||||
#define LN_ms_code_com "Microsoft Commercial Code Signing"
|
||||
#define NID_ms_code_com 135
|
||||
#define OBJ_ms_code_com 1L,3L,6L,1L,4L,1L,311L,2L,1L,22L
|
||||
|
||||
#define SN_ms_ctl_sign "msCTLSign"
|
||||
#define LN_ms_ctl_sign "Microsoft Trust List Signing"
|
||||
#define NID_ms_ctl_sign 136
|
||||
#define OBJ_ms_ctl_sign 1L,3L,6L,1L,4L,1L,311L,10L,3L,1L
|
||||
|
||||
#define SN_ms_sgc "msSGC"
|
||||
#define LN_ms_sgc "Microsoft Server Gated Crypto"
|
||||
#define NID_ms_sgc 137
|
||||
#define OBJ_ms_sgc 1L,3L,6L,1L,4L,1L,311L,10L,3L,3L
|
||||
|
||||
#define SN_ms_efs "msEFS"
|
||||
#define LN_ms_efs "Microsoft Encrypted File System"
|
||||
#define NID_ms_efs 138
|
||||
#define OBJ_ms_efs 1L,3L,6L,1L,4L,1L,311L,10L,3L,4L
|
||||
|
||||
#define SN_ms_smartcard_login "msSmartcardLogin"
|
||||
#define LN_ms_smartcard_login "Microsoft Smartcard Login"
|
||||
#define NID_ms_smartcard_login 648
|
||||
#define OBJ_ms_smartcard_login 1L,3L,6L,1L,4L,1L,311L,20L,2L,2L
|
||||
|
||||
#define SN_ms_upn "msUPN"
|
||||
#define LN_ms_upn "Microsoft User Principal Name"
|
||||
#define NID_ms_upn 649
|
||||
#define OBJ_ms_upn 1L,3L,6L,1L,4L,1L,311L,20L,2L,3L
|
||||
|
||||
#define SN_idea_cbc "IDEA-CBC"
|
||||
#define LN_idea_cbc "idea-cbc"
|
||||
#define NID_idea_cbc 34
|
||||
#define OBJ_idea_cbc 1L,3L,6L,1L,4L,1L,188L,7L,1L,1L,2L
|
||||
|
||||
#define SN_idea_ecb "IDEA-ECB"
|
||||
#define LN_idea_ecb "idea-ecb"
|
||||
#define NID_idea_ecb 36
|
||||
|
||||
#define SN_idea_cfb64 "IDEA-CFB"
|
||||
#define LN_idea_cfb64 "idea-cfb"
|
||||
#define NID_idea_cfb64 35
|
||||
|
||||
#define SN_idea_ofb64 "IDEA-OFB"
|
||||
#define LN_idea_ofb64 "idea-ofb"
|
||||
#define NID_idea_ofb64 46
|
||||
|
||||
#define SN_bf_cbc "BF-CBC"
|
||||
#define LN_bf_cbc "bf-cbc"
|
||||
#define NID_bf_cbc 91
|
||||
#define OBJ_bf_cbc 1L,3L,6L,1L,4L,1L,3029L,1L,2L
|
||||
|
||||
#define SN_bf_ecb "BF-ECB"
|
||||
#define LN_bf_ecb "bf-ecb"
|
||||
#define NID_bf_ecb 92
|
||||
|
||||
#define SN_bf_cfb64 "BF-CFB"
|
||||
#define LN_bf_cfb64 "bf-cfb"
|
||||
#define NID_bf_cfb64 93
|
||||
|
||||
#define SN_bf_ofb64 "BF-OFB"
|
||||
#define LN_bf_ofb64 "bf-ofb"
|
||||
#define NID_bf_ofb64 94
|
||||
|
||||
#define SN_id_pkix "PKIX"
|
||||
#define NID_id_pkix 127
|
||||
#define OBJ_id_pkix 1L,3L,6L,1L,5L,5L,7L
|
||||
|
||||
#define SN_id_pkix_mod "id-pkix-mod"
|
||||
#define NID_id_pkix_mod 258
|
||||
#define OBJ_id_pkix_mod OBJ_id_pkix,0L
|
||||
|
||||
#define SN_id_pe "id-pe"
|
||||
#define NID_id_pe 175
|
||||
#define OBJ_id_pe OBJ_id_pkix,1L
|
||||
|
||||
#define SN_id_qt "id-qt"
|
||||
#define NID_id_qt 259
|
||||
#define OBJ_id_qt OBJ_id_pkix,2L
|
||||
|
||||
#define SN_id_kp "id-kp"
|
||||
#define NID_id_kp 128
|
||||
#define OBJ_id_kp OBJ_id_pkix,3L
|
||||
|
||||
#define SN_id_it "id-it"
|
||||
#define NID_id_it 260
|
||||
#define OBJ_id_it OBJ_id_pkix,4L
|
||||
|
||||
#define SN_id_pkip "id-pkip"
|
||||
#define NID_id_pkip 261
|
||||
#define OBJ_id_pkip OBJ_id_pkix,5L
|
||||
|
||||
#define SN_id_alg "id-alg"
|
||||
#define NID_id_alg 262
|
||||
#define OBJ_id_alg OBJ_id_pkix,6L
|
||||
|
||||
#define SN_id_cmc "id-cmc"
|
||||
#define NID_id_cmc 263
|
||||
#define OBJ_id_cmc OBJ_id_pkix,7L
|
||||
|
||||
#define SN_id_on "id-on"
|
||||
#define NID_id_on 264
|
||||
#define OBJ_id_on OBJ_id_pkix,8L
|
||||
|
||||
#define SN_id_pda "id-pda"
|
||||
#define NID_id_pda 265
|
||||
#define OBJ_id_pda OBJ_id_pkix,9L
|
||||
|
||||
#define SN_id_aca "id-aca"
|
||||
#define NID_id_aca 266
|
||||
#define OBJ_id_aca OBJ_id_pkix,10L
|
||||
|
||||
#define SN_id_qcs "id-qcs"
|
||||
#define NID_id_qcs 267
|
||||
#define OBJ_id_qcs OBJ_id_pkix,11L
|
||||
|
||||
#define SN_id_cct "id-cct"
|
||||
#define NID_id_cct 268
|
||||
#define OBJ_id_cct OBJ_id_pkix,12L
|
||||
|
||||
#define SN_id_ppl "id-ppl"
|
||||
#define NID_id_ppl 662
|
||||
#define OBJ_id_ppl OBJ_id_pkix,21L
|
||||
|
||||
#define SN_id_ad "id-ad"
|
||||
#define NID_id_ad 176
|
||||
#define OBJ_id_ad OBJ_id_pkix,48L
|
||||
|
||||
#define SN_id_pkix1_explicit_88 "id-pkix1-explicit-88"
|
||||
#define NID_id_pkix1_explicit_88 269
|
||||
#define OBJ_id_pkix1_explicit_88 OBJ_id_pkix_mod,1L
|
||||
|
||||
#define SN_id_pkix1_implicit_88 "id-pkix1-implicit-88"
|
||||
#define NID_id_pkix1_implicit_88 270
|
||||
#define OBJ_id_pkix1_implicit_88 OBJ_id_pkix_mod,2L
|
||||
|
||||
#define SN_id_pkix1_explicit_93 "id-pkix1-explicit-93"
|
||||
#define NID_id_pkix1_explicit_93 271
|
||||
#define OBJ_id_pkix1_explicit_93 OBJ_id_pkix_mod,3L
|
||||
|
||||
#define SN_id_pkix1_implicit_93 "id-pkix1-implicit-93"
|
||||
#define NID_id_pkix1_implicit_93 272
|
||||
#define OBJ_id_pkix1_implicit_93 OBJ_id_pkix_mod,4L
|
||||
|
||||
#define SN_id_mod_crmf "id-mod-crmf"
|
||||
#define NID_id_mod_crmf 273
|
||||
#define OBJ_id_mod_crmf OBJ_id_pkix_mod,5L
|
||||
|
||||
#define SN_id_mod_cmc "id-mod-cmc"
|
||||
#define NID_id_mod_cmc 274
|
||||
#define OBJ_id_mod_cmc OBJ_id_pkix_mod,6L
|
||||
|
||||
#define SN_id_mod_kea_profile_88 "id-mod-kea-profile-88"
|
||||
#define NID_id_mod_kea_profile_88 275
|
||||
#define OBJ_id_mod_kea_profile_88 OBJ_id_pkix_mod,7L
|
||||
|
||||
#define SN_id_mod_kea_profile_93 "id-mod-kea-profile-93"
|
||||
#define NID_id_mod_kea_profile_93 276
|
||||
#define OBJ_id_mod_kea_profile_93 OBJ_id_pkix_mod,8L
|
||||
|
||||
#define SN_id_mod_cmp "id-mod-cmp"
|
||||
#define NID_id_mod_cmp 277
|
||||
#define OBJ_id_mod_cmp OBJ_id_pkix_mod,9L
|
||||
|
||||
#define SN_id_mod_qualified_cert_88 "id-mod-qualified-cert-88"
|
||||
#define NID_id_mod_qualified_cert_88 278
|
||||
#define OBJ_id_mod_qualified_cert_88 OBJ_id_pkix_mod,10L
|
||||
|
||||
#define SN_id_mod_qualified_cert_93 "id-mod-qualified-cert-93"
|
||||
#define NID_id_mod_qualified_cert_93 279
|
||||
#define OBJ_id_mod_qualified_cert_93 OBJ_id_pkix_mod,11L
|
||||
|
||||
#define SN_id_mod_attribute_cert "id-mod-attribute-cert"
|
||||
#define NID_id_mod_attribute_cert 280
|
||||
#define OBJ_id_mod_attribute_cert OBJ_id_pkix_mod,12L
|
||||
|
||||
#define SN_id_mod_timestamp_protocol "id-mod-timestamp-protocol"
|
||||
#define NID_id_mod_timestamp_protocol 281
|
||||
#define OBJ_id_mod_timestamp_protocol OBJ_id_pkix_mod,13L
|
||||
|
||||
#define SN_id_mod_ocsp "id-mod-ocsp"
|
||||
#define NID_id_mod_ocsp 282
|
||||
#define OBJ_id_mod_ocsp OBJ_id_pkix_mod,14L
|
||||
|
||||
#define SN_id_mod_dvcs "id-mod-dvcs"
|
||||
#define NID_id_mod_dvcs 283
|
||||
#define OBJ_id_mod_dvcs OBJ_id_pkix_mod,15L
|
||||
|
||||
#define SN_id_mod_cmp2000 "id-mod-cmp2000"
|
||||
#define NID_id_mod_cmp2000 284
|
||||
#define OBJ_id_mod_cmp2000 OBJ_id_pkix_mod,16L
|
||||
|
||||
#define SN_info_access "authorityInfoAccess"
|
||||
#define LN_info_access "Authority Information Access"
|
||||
#define NID_info_access 177
|
||||
#define OBJ_info_access OBJ_id_pe,1L
|
||||
|
||||
#define SN_biometricInfo "biometricInfo"
|
||||
#define LN_biometricInfo "Biometric Info"
|
||||
#define NID_biometricInfo 285
|
||||
#define OBJ_biometricInfo OBJ_id_pe,2L
|
||||
|
||||
#define SN_qcStatements "qcStatements"
|
||||
#define NID_qcStatements 286
|
||||
#define OBJ_qcStatements OBJ_id_pe,3L
|
||||
|
||||
#define SN_ac_auditEntity "ac-auditEntity"
|
||||
#define NID_ac_auditEntity 287
|
||||
#define OBJ_ac_auditEntity OBJ_id_pe,4L
|
||||
|
||||
#define SN_ac_targeting "ac-targeting"
|
||||
#define NID_ac_targeting 288
|
||||
#define OBJ_ac_targeting OBJ_id_pe,5L
|
||||
|
||||
#define SN_aaControls "aaControls"
|
||||
#define NID_aaControls 289
|
||||
#define OBJ_aaControls OBJ_id_pe,6L
|
||||
|
||||
#define SN_sbgp_ipAddrBlock "sbgp-ipAddrBlock"
|
||||
#define NID_sbgp_ipAddrBlock 290
|
||||
#define OBJ_sbgp_ipAddrBlock OBJ_id_pe,7L
|
||||
|
||||
#define SN_sbgp_autonomousSysNum "sbgp-autonomousSysNum"
|
||||
#define NID_sbgp_autonomousSysNum 291
|
||||
#define OBJ_sbgp_autonomousSysNum OBJ_id_pe,8L
|
||||
|
||||
#define SN_sbgp_routerIdentifier "sbgp-routerIdentifier"
|
||||
#define NID_sbgp_routerIdentifier 292
|
||||
#define OBJ_sbgp_routerIdentifier OBJ_id_pe,9L
|
||||
|
||||
#define SN_ac_proxying "ac-proxying"
|
||||
#define NID_ac_proxying 397
|
||||
#define OBJ_ac_proxying OBJ_id_pe,10L
|
||||
|
||||
#define SN_sinfo_access "subjectInfoAccess"
|
||||
#define LN_sinfo_access "Subject Information Access"
|
||||
#define NID_sinfo_access 398
|
||||
#define OBJ_sinfo_access OBJ_id_pe,11L
|
||||
|
||||
#define SN_proxyCertInfo "proxyCertInfo"
|
||||
#define LN_proxyCertInfo "Proxy Certificate Information"
|
||||
#define NID_proxyCertInfo 663
|
||||
#define OBJ_proxyCertInfo OBJ_id_pe,14L
|
||||
|
||||
#define SN_tlsfeature "tlsfeature"
|
||||
#define LN_tlsfeature "TLS Feature"
|
||||
#define NID_tlsfeature 1020
|
||||
#define OBJ_tlsfeature OBJ_id_pe,24L
|
||||
|
||||
#define SN_id_qt_cps "id-qt-cps"
|
||||
#define LN_id_qt_cps "Policy Qualifier CPS"
|
||||
#define NID_id_qt_cps 164
|
||||
#define OBJ_id_qt_cps OBJ_id_qt,1L
|
||||
|
||||
#define SN_id_qt_unotice "id-qt-unotice"
|
||||
#define LN_id_qt_unotice "Policy Qualifier User Notice"
|
||||
#define NID_id_qt_unotice 165
|
||||
#define OBJ_id_qt_unotice OBJ_id_qt,2L
|
||||
|
||||
#define SN_textNotice "textNotice"
|
||||
#define NID_textNotice 293
|
||||
#define OBJ_textNotice OBJ_id_qt,3L
|
||||
|
||||
#define SN_server_auth "serverAuth"
|
||||
#define LN_server_auth "TLS Web Server Authentication"
|
||||
#define NID_server_auth 129
|
||||
#define OBJ_server_auth OBJ_id_kp,1L
|
||||
|
||||
#define SN_client_auth "clientAuth"
|
||||
#define LN_client_auth "TLS Web Client Authentication"
|
||||
#define NID_client_auth 130
|
||||
#define OBJ_client_auth OBJ_id_kp,2L
|
||||
|
||||
#define SN_code_sign "codeSigning"
|
||||
#define LN_code_sign "Code Signing"
|
||||
#define NID_code_sign 131
|
||||
#define OBJ_code_sign OBJ_id_kp,3L
|
||||
|
||||
#define SN_email_protect "emailProtection"
|
||||
#define LN_email_protect "E-mail Protection"
|
||||
#define NID_email_protect 132
|
||||
#define OBJ_email_protect OBJ_id_kp,4L
|
||||
|
||||
#define SN_ipsecEndSystem "ipsecEndSystem"
|
||||
#define LN_ipsecEndSystem "IPSec End System"
|
||||
#define NID_ipsecEndSystem 294
|
||||
#define OBJ_ipsecEndSystem OBJ_id_kp,5L
|
||||
|
||||
#define SN_ipsecTunnel "ipsecTunnel"
|
||||
#define LN_ipsecTunnel "IPSec Tunnel"
|
||||
#define NID_ipsecTunnel 295
|
||||
#define OBJ_ipsecTunnel OBJ_id_kp,6L
|
||||
|
||||
#define SN_ipsecUser "ipsecUser"
|
||||
#define LN_ipsecUser "IPSec User"
|
||||
#define NID_ipsecUser 296
|
||||
#define OBJ_ipsecUser OBJ_id_kp,7L
|
||||
|
||||
#define SN_time_stamp "timeStamping"
|
||||
#define LN_time_stamp "Time Stamping"
|
||||
#define NID_time_stamp 133
|
||||
#define OBJ_time_stamp OBJ_id_kp,8L
|
||||
|
||||
#define SN_OCSP_sign "OCSPSigning"
|
||||
#define LN_OCSP_sign "OCSP Signing"
|
||||
#define NID_OCSP_sign 180
|
||||
#define OBJ_OCSP_sign OBJ_id_kp,9L
|
||||
|
||||
#define SN_dvcs "DVCS"
|
||||
#define LN_dvcs "dvcs"
|
||||
#define NID_dvcs 297
|
||||
#define OBJ_dvcs OBJ_id_kp,10L
|
||||
|
||||
#define SN_ipsec_IKE "ipsecIKE"
|
||||
#define LN_ipsec_IKE "ipsec Internet Key Exchange"
|
||||
#define NID_ipsec_IKE 1022
|
||||
#define OBJ_ipsec_IKE OBJ_id_kp,17L
|
||||
|
||||
#define SN_capwapAC "capwapAC"
|
||||
#define LN_capwapAC "Ctrl/provision WAP Access"
|
||||
#define NID_capwapAC 1023
|
||||
#define OBJ_capwapAC OBJ_id_kp,18L
|
||||
|
||||
#define SN_capwapWTP "capwapWTP"
|
||||
#define LN_capwapWTP "Ctrl/Provision WAP Termination"
|
||||
#define NID_capwapWTP 1024
|
||||
#define OBJ_capwapWTP OBJ_id_kp,19L
|
||||
|
||||
#define SN_sshClient "secureShellClient"
|
||||
#define LN_sshClient "SSH Client"
|
||||
#define NID_sshClient 1025
|
||||
#define OBJ_sshClient OBJ_id_kp,21L
|
||||
|
||||
#define SN_sshServer "secureShellServer"
|
||||
#define LN_sshServer "SSH Server"
|
||||
#define NID_sshServer 1026
|
||||
#define OBJ_sshServer OBJ_id_kp,22L
|
||||
|
||||
#define SN_sendRouter "sendRouter"
|
||||
#define LN_sendRouter "Send Router"
|
||||
#define NID_sendRouter 1027
|
||||
#define OBJ_sendRouter OBJ_id_kp,23L
|
||||
|
||||
#define SN_sendProxiedRouter "sendProxiedRouter"
|
||||
#define LN_sendProxiedRouter "Send Proxied Router"
|
||||
#define NID_sendProxiedRouter 1028
|
||||
#define OBJ_sendProxiedRouter OBJ_id_kp,24L
|
||||
|
||||
#define SN_sendOwner "sendOwner"
|
||||
#define LN_sendOwner "Send Owner"
|
||||
#define NID_sendOwner 1029
|
||||
#define OBJ_sendOwner OBJ_id_kp,25L
|
||||
|
||||
#define SN_sendProxiedOwner "sendProxiedOwner"
|
||||
#define LN_sendProxiedOwner "Send Proxied Owner"
|
||||
#define NID_sendProxiedOwner 1030
|
||||
#define OBJ_sendProxiedOwner OBJ_id_kp,26L
|
||||
|
||||
#define SN_cmcCA "cmcCA"
|
||||
#define LN_cmcCA "CMC Certificate Authority"
|
||||
#define NID_cmcCA 1131
|
||||
#define OBJ_cmcCA OBJ_id_kp,27L
|
||||
|
||||
#define SN_cmcRA "cmcRA"
|
||||
#define LN_cmcRA "CMC Registration Authority"
|
||||
#define NID_cmcRA 1132
|
||||
#define OBJ_cmcRA OBJ_id_kp,28L
|
||||
|
||||
#define SN_id_it_caProtEncCert "id-it-caProtEncCert"
|
||||
#define NID_id_it_caProtEncCert 298
|
||||
#define OBJ_id_it_caProtEncCert OBJ_id_it,1L
|
||||
|
||||
#define SN_id_it_signKeyPairTypes "id-it-signKeyPairTypes"
|
||||
#define NID_id_it_signKeyPairTypes 299
|
||||
#define OBJ_id_it_signKeyPairTypes OBJ_id_it,2L
|
||||
|
||||
#define SN_id_it_encKeyPairTypes "id-it-encKeyPairTypes"
|
||||
#define NID_id_it_encKeyPairTypes 300
|
||||
#define OBJ_id_it_encKeyPairTypes OBJ_id_it,3L
|
||||
|
||||
#define SN_id_it_preferredSymmAlg "id-it-preferredSymmAlg"
|
||||
#define NID_id_it_preferredSymmAlg 301
|
||||
#define OBJ_id_it_preferredSymmAlg OBJ_id_it,4L
|
||||
|
||||
#define SN_id_it_caKeyUpdateInfo "id-it-caKeyUpdateInfo"
|
||||
#define NID_id_it_caKeyUpdateInfo 302
|
||||
#define OBJ_id_it_caKeyUpdateInfo OBJ_id_it,5L
|
||||
|
||||
#define SN_id_it_currentCRL "id-it-currentCRL"
|
||||
#define NID_id_it_currentCRL 303
|
||||
#define OBJ_id_it_currentCRL OBJ_id_it,6L
|
||||
|
||||
#define SN_id_it_unsupportedOIDs "id-it-unsupportedOIDs"
|
||||
#define NID_id_it_unsupportedOIDs 304
|
||||
#define OBJ_id_it_unsupportedOIDs OBJ_id_it,7L
|
||||
|
||||
#define SN_id_it_subscriptionRequest "id-it-subscriptionRequest"
|
||||
#define NID_id_it_subscriptionRequest 305
|
||||
#define OBJ_id_it_subscriptionRequest OBJ_id_it,8L
|
||||
|
||||
#define SN_id_it_subscriptionResponse "id-it-subscriptionResponse"
|
||||
#define NID_id_it_subscriptionResponse 306
|
||||
#define OBJ_id_it_subscriptionResponse OBJ_id_it,9L
|
||||
|
||||
#define SN_id_it_keyPairParamReq "id-it-keyPairParamReq"
|
||||
#define NID_id_it_keyPairParamReq 307
|
||||
#define OBJ_id_it_keyPairParamReq OBJ_id_it,10L
|
||||
|
||||
#define SN_id_it_keyPairParamRep "id-it-keyPairParamRep"
|
||||
#define NID_id_it_keyPairParamRep 308
|
||||
#define OBJ_id_it_keyPairParamRep OBJ_id_it,11L
|
||||
|
||||
#define SN_id_it_revPassphrase "id-it-revPassphrase"
|
||||
#define NID_id_it_revPassphrase 309
|
||||
#define OBJ_id_it_revPassphrase OBJ_id_it,12L
|
||||
|
||||
#define SN_id_it_implicitConfirm "id-it-implicitConfirm"
|
||||
#define NID_id_it_implicitConfirm 310
|
||||
#define OBJ_id_it_implicitConfirm OBJ_id_it,13L
|
||||
|
||||
#define SN_id_it_confirmWaitTime "id-it-confirmWaitTime"
|
||||
#define NID_id_it_confirmWaitTime 311
|
||||
#define OBJ_id_it_confirmWaitTime OBJ_id_it,14L
|
||||
|
||||
#define SN_id_it_origPKIMessage "id-it-origPKIMessage"
|
||||
#define NID_id_it_origPKIMessage 312
|
||||
#define OBJ_id_it_origPKIMessage OBJ_id_it,15L
|
||||
|
||||
#define SN_id_it_suppLangTags "id-it-suppLangTags"
|
||||
#define NID_id_it_suppLangTags 784
|
||||
#define OBJ_id_it_suppLangTags OBJ_id_it,16L
|
||||
|
||||
#define SN_id_regCtrl "id-regCtrl"
|
||||
#define NID_id_regCtrl 313
|
||||
#define OBJ_id_regCtrl OBJ_id_pkip,1L
|
||||
|
||||
#define SN_id_regInfo "id-regInfo"
|
||||
#define NID_id_regInfo 314
|
||||
#define OBJ_id_regInfo OBJ_id_pkip,2L
|
||||
|
||||
#define SN_id_regCtrl_regToken "id-regCtrl-regToken"
|
||||
#define NID_id_regCtrl_regToken 315
|
||||
#define OBJ_id_regCtrl_regToken OBJ_id_regCtrl,1L
|
||||
|
||||
#define SN_id_regCtrl_authenticator "id-regCtrl-authenticator"
|
||||
#define NID_id_regCtrl_authenticator 316
|
||||
#define OBJ_id_regCtrl_authenticator OBJ_id_regCtrl,2L
|
||||
|
||||
#define SN_id_regCtrl_pkiPublicationInfo "id-regCtrl-pkiPublicationInfo"
|
||||
#define NID_id_regCtrl_pkiPublicationInfo 317
|
||||
#define OBJ_id_regCtrl_pkiPublicationInfo OBJ_id_regCtrl,3L
|
||||
|
||||
#define SN_id_regCtrl_pkiArchiveOptions "id-regCtrl-pkiArchiveOptions"
|
||||
#define NID_id_regCtrl_pkiArchiveOptions 318
|
||||
#define OBJ_id_regCtrl_pkiArchiveOptions OBJ_id_regCtrl,4L
|
||||
|
||||
#define SN_id_regCtrl_oldCertID "id-regCtrl-oldCertID"
|
||||
#define NID_id_regCtrl_oldCertID 319
|
||||
#define OBJ_id_regCtrl_oldCertID OBJ_id_regCtrl,5L
|
||||
|
||||
#define SN_id_regCtrl_protocolEncrKey "id-regCtrl-protocolEncrKey"
|
||||
#define NID_id_regCtrl_protocolEncrKey 320
|
||||
#define OBJ_id_regCtrl_protocolEncrKey OBJ_id_regCtrl,6L
|
||||
|
||||
#define SN_id_regInfo_utf8Pairs "id-regInfo-utf8Pairs"
|
||||
#define NID_id_regInfo_utf8Pairs 321
|
||||
#define OBJ_id_regInfo_utf8Pairs OBJ_id_regInfo,1L
|
||||
|
||||
#define SN_id_regInfo_certReq "id-regInfo-certReq"
|
||||
#define NID_id_regInfo_certReq 322
|
||||
#define OBJ_id_regInfo_certReq OBJ_id_regInfo,2L
|
||||
|
||||
#define SN_id_alg_des40 "id-alg-des40"
|
||||
#define NID_id_alg_des40 323
|
||||
#define OBJ_id_alg_des40 OBJ_id_alg,1L
|
||||
|
||||
#define SN_id_alg_noSignature "id-alg-noSignature"
|
||||
#define NID_id_alg_noSignature 324
|
||||
#define OBJ_id_alg_noSignature OBJ_id_alg,2L
|
||||
|
||||
#define SN_id_alg_dh_sig_hmac_sha1 "id-alg-dh-sig-hmac-sha1"
|
||||
#define NID_id_alg_dh_sig_hmac_sha1 325
|
||||
#define OBJ_id_alg_dh_sig_hmac_sha1 OBJ_id_alg,3L
|
||||
|
||||
#define SN_id_alg_dh_pop "id-alg-dh-pop"
|
||||
#define NID_id_alg_dh_pop 326
|
||||
#define OBJ_id_alg_dh_pop OBJ_id_alg,4L
|
||||
|
||||
#define SN_id_cmc_statusInfo "id-cmc-statusInfo"
|
||||
#define NID_id_cmc_statusInfo 327
|
||||
#define OBJ_id_cmc_statusInfo OBJ_id_cmc,1L
|
||||
|
||||
#define SN_id_cmc_identification "id-cmc-identification"
|
||||
#define NID_id_cmc_identification 328
|
||||
#define OBJ_id_cmc_identification OBJ_id_cmc,2L
|
||||
|
||||
#define SN_id_cmc_identityProof "id-cmc-identityProof"
|
||||
#define NID_id_cmc_identityProof 329
|
||||
#define OBJ_id_cmc_identityProof OBJ_id_cmc,3L
|
||||
|
||||
#define SN_id_cmc_dataReturn "id-cmc-dataReturn"
|
||||
#define NID_id_cmc_dataReturn 330
|
||||
#define OBJ_id_cmc_dataReturn OBJ_id_cmc,4L
|
||||
|
||||
#define SN_id_cmc_transactionId "id-cmc-transactionId"
|
||||
#define NID_id_cmc_transactionId 331
|
||||
#define OBJ_id_cmc_transactionId OBJ_id_cmc,5L
|
||||
|
||||
#define SN_id_cmc_senderNonce "id-cmc-senderNonce"
|
||||
#define NID_id_cmc_senderNonce 332
|
||||
#define OBJ_id_cmc_senderNonce OBJ_id_cmc,6L
|
||||
|
||||
#define SN_id_cmc_recipientNonce "id-cmc-recipientNonce"
|
||||
#define NID_id_cmc_recipientNonce 333
|
||||
#define OBJ_id_cmc_recipientNonce OBJ_id_cmc,7L
|
||||
|
||||
#define SN_id_cmc_addExtensions "id-cmc-addExtensions"
|
||||
#define NID_id_cmc_addExtensions 334
|
||||
#define OBJ_id_cmc_addExtensions OBJ_id_cmc,8L
|
||||
|
||||
#define SN_id_cmc_encryptedPOP "id-cmc-encryptedPOP"
|
||||
#define NID_id_cmc_encryptedPOP 335
|
||||
#define OBJ_id_cmc_encryptedPOP OBJ_id_cmc,9L
|
||||
|
||||
#define SN_id_cmc_decryptedPOP "id-cmc-decryptedPOP"
|
||||
#define NID_id_cmc_decryptedPOP 336
|
||||
#define OBJ_id_cmc_decryptedPOP OBJ_id_cmc,10L
|
||||
|
||||
#define SN_id_cmc_lraPOPWitness "id-cmc-lraPOPWitness"
|
||||
#define NID_id_cmc_lraPOPWitness 337
|
||||
#define OBJ_id_cmc_lraPOPWitness OBJ_id_cmc,11L
|
||||
|
||||
#define SN_id_cmc_getCert "id-cmc-getCert"
|
||||
#define NID_id_cmc_getCert 338
|
||||
#define OBJ_id_cmc_getCert OBJ_id_cmc,15L
|
||||
|
||||
#define SN_id_cmc_getCRL "id-cmc-getCRL"
|
||||
#define NID_id_cmc_getCRL 339
|
||||
#define OBJ_id_cmc_getCRL OBJ_id_cmc,16L
|
||||
|
||||
#define SN_id_cmc_revokeRequest "id-cmc-revokeRequest"
|
||||
#define NID_id_cmc_revokeRequest 340
|
||||
#define OBJ_id_cmc_revokeRequest OBJ_id_cmc,17L
|
||||
|
||||
#define SN_id_cmc_regInfo "id-cmc-regInfo"
|
||||
#define NID_id_cmc_regInfo 341
|
||||
#define OBJ_id_cmc_regInfo OBJ_id_cmc,18L
|
||||
|
||||
#define SN_id_cmc_responseInfo "id-cmc-responseInfo"
|
||||
#define NID_id_cmc_responseInfo 342
|
||||
#define OBJ_id_cmc_responseInfo OBJ_id_cmc,19L
|
||||
|
||||
#define SN_id_cmc_queryPending "id-cmc-queryPending"
|
||||
#define NID_id_cmc_queryPending 343
|
||||
#define OBJ_id_cmc_queryPending OBJ_id_cmc,21L
|
||||
|
||||
#define SN_id_cmc_popLinkRandom "id-cmc-popLinkRandom"
|
||||
#define NID_id_cmc_popLinkRandom 344
|
||||
#define OBJ_id_cmc_popLinkRandom OBJ_id_cmc,22L
|
||||
|
||||
#define SN_id_cmc_popLinkWitness "id-cmc-popLinkWitness"
|
||||
#define NID_id_cmc_popLinkWitness 345
|
||||
#define OBJ_id_cmc_popLinkWitness OBJ_id_cmc,23L
|
||||
|
||||
#define SN_id_cmc_confirmCertAcceptance "id-cmc-confirmCertAcceptance"
|
||||
#define NID_id_cmc_confirmCertAcceptance 346
|
||||
#define OBJ_id_cmc_confirmCertAcceptance OBJ_id_cmc,24L
|
||||
|
||||
#define SN_id_on_personalData "id-on-personalData"
|
||||
#define NID_id_on_personalData 347
|
||||
#define OBJ_id_on_personalData OBJ_id_on,1L
|
||||
|
||||
#define SN_id_on_permanentIdentifier "id-on-permanentIdentifier"
|
||||
#define LN_id_on_permanentIdentifier "Permanent Identifier"
|
||||
#define NID_id_on_permanentIdentifier 858
|
||||
#define OBJ_id_on_permanentIdentifier OBJ_id_on,3L
|
||||
|
||||
#define SN_XmppAddr "id-on-xmppAddr"
|
||||
#define LN_XmppAddr "XmppAddr"
|
||||
#define NID_XmppAddr 1209
|
||||
#define OBJ_XmppAddr OBJ_id_on,5L
|
||||
|
||||
#define SN_SRVName "id-on-dnsSRV"
|
||||
#define LN_SRVName "SRVName"
|
||||
#define NID_SRVName 1210
|
||||
#define OBJ_SRVName OBJ_id_on,7L
|
||||
|
||||
#define SN_NAIRealm "id-on-NAIRealm"
|
||||
#define LN_NAIRealm "NAIRealm"
|
||||
#define NID_NAIRealm 1211
|
||||
#define OBJ_NAIRealm OBJ_id_on,8L
|
||||
|
||||
#define SN_id_on_SmtpUTF8Mailbox "id-on-SmtpUTF8Mailbox"
|
||||
#define LN_id_on_SmtpUTF8Mailbox "Smtp UTF8 Mailbox"
|
||||
#define NID_id_on_SmtpUTF8Mailbox 1208
|
||||
#define OBJ_id_on_SmtpUTF8Mailbox OBJ_id_on,9L
|
||||
|
||||
#define SN_id_pda_dateOfBirth "id-pda-dateOfBirth"
|
||||
#define NID_id_pda_dateOfBirth 348
|
||||
#define OBJ_id_pda_dateOfBirth OBJ_id_pda,1L
|
||||
|
||||
#define SN_id_pda_placeOfBirth "id-pda-placeOfBirth"
|
||||
#define NID_id_pda_placeOfBirth 349
|
||||
#define OBJ_id_pda_placeOfBirth OBJ_id_pda,2L
|
||||
|
||||
#define SN_id_pda_gender "id-pda-gender"
|
||||
#define NID_id_pda_gender 351
|
||||
#define OBJ_id_pda_gender OBJ_id_pda,3L
|
||||
|
||||
#define SN_id_pda_countryOfCitizenship "id-pda-countryOfCitizenship"
|
||||
#define NID_id_pda_countryOfCitizenship 352
|
||||
#define OBJ_id_pda_countryOfCitizenship OBJ_id_pda,4L
|
||||
|
||||
#define SN_id_pda_countryOfResidence "id-pda-countryOfResidence"
|
||||
#define NID_id_pda_countryOfResidence 353
|
||||
#define OBJ_id_pda_countryOfResidence OBJ_id_pda,5L
|
||||
|
||||
#define SN_id_aca_authenticationInfo "id-aca-authenticationInfo"
|
||||
#define NID_id_aca_authenticationInfo 354
|
||||
#define OBJ_id_aca_authenticationInfo OBJ_id_aca,1L
|
||||
|
||||
#define SN_id_aca_accessIdentity "id-aca-accessIdentity"
|
||||
#define NID_id_aca_accessIdentity 355
|
||||
#define OBJ_id_aca_accessIdentity OBJ_id_aca,2L
|
||||
|
||||
#define SN_id_aca_chargingIdentity "id-aca-chargingIdentity"
|
||||
#define NID_id_aca_chargingIdentity 356
|
||||
#define OBJ_id_aca_chargingIdentity OBJ_id_aca,3L
|
||||
|
||||
#define SN_id_aca_group "id-aca-group"
|
||||
#define NID_id_aca_group 357
|
||||
#define OBJ_id_aca_group OBJ_id_aca,4L
|
||||
|
||||
#define SN_id_aca_role "id-aca-role"
|
||||
#define NID_id_aca_role 358
|
||||
#define OBJ_id_aca_role OBJ_id_aca,5L
|
||||
|
||||
#define SN_id_aca_encAttrs "id-aca-encAttrs"
|
||||
#define NID_id_aca_encAttrs 399
|
||||
#define OBJ_id_aca_encAttrs OBJ_id_aca,6L
|
||||
|
||||
#define SN_id_qcs_pkixQCSyntax_v1 "id-qcs-pkixQCSyntax-v1"
|
||||
#define NID_id_qcs_pkixQCSyntax_v1 359
|
||||
#define OBJ_id_qcs_pkixQCSyntax_v1 OBJ_id_qcs,1L
|
||||
|
||||
#define SN_id_cct_crs "id-cct-crs"
|
||||
#define NID_id_cct_crs 360
|
||||
#define OBJ_id_cct_crs OBJ_id_cct,1L
|
||||
|
||||
#define SN_id_cct_PKIData "id-cct-PKIData"
|
||||
#define NID_id_cct_PKIData 361
|
||||
#define OBJ_id_cct_PKIData OBJ_id_cct,2L
|
||||
|
||||
#define SN_id_cct_PKIResponse "id-cct-PKIResponse"
|
||||
#define NID_id_cct_PKIResponse 362
|
||||
#define OBJ_id_cct_PKIResponse OBJ_id_cct,3L
|
||||
|
||||
#define SN_id_ppl_anyLanguage "id-ppl-anyLanguage"
|
||||
#define LN_id_ppl_anyLanguage "Any language"
|
||||
#define NID_id_ppl_anyLanguage 664
|
||||
#define OBJ_id_ppl_anyLanguage OBJ_id_ppl,0L
|
||||
|
||||
#define SN_id_ppl_inheritAll "id-ppl-inheritAll"
|
||||
#define LN_id_ppl_inheritAll "Inherit all"
|
||||
#define NID_id_ppl_inheritAll 665
|
||||
#define OBJ_id_ppl_inheritAll OBJ_id_ppl,1L
|
||||
|
||||
#define SN_Independent "id-ppl-independent"
|
||||
#define LN_Independent "Independent"
|
||||
#define NID_Independent 667
|
||||
#define OBJ_Independent OBJ_id_ppl,2L
|
||||
|
||||
#define SN_ad_OCSP "OCSP"
|
||||
#define LN_ad_OCSP "OCSP"
|
||||
#define NID_ad_OCSP 178
|
||||
#define OBJ_ad_OCSP OBJ_id_ad,1L
|
||||
|
||||
#define SN_ad_ca_issuers "caIssuers"
|
||||
#define LN_ad_ca_issuers "CA Issuers"
|
||||
#define NID_ad_ca_issuers 179
|
||||
#define OBJ_ad_ca_issuers OBJ_id_ad,2L
|
||||
|
||||
#define SN_ad_timeStamping "ad_timestamping"
|
||||
#define LN_ad_timeStamping "AD Time Stamping"
|
||||
#define NID_ad_timeStamping 363
|
||||
#define OBJ_ad_timeStamping OBJ_id_ad,3L
|
||||
|
||||
#define SN_ad_dvcs "AD_DVCS"
|
||||
#define LN_ad_dvcs "ad dvcs"
|
||||
#define NID_ad_dvcs 364
|
||||
#define OBJ_ad_dvcs OBJ_id_ad,4L
|
||||
|
||||
#define SN_caRepository "caRepository"
|
||||
#define LN_caRepository "CA Repository"
|
||||
#define NID_caRepository 785
|
||||
#define OBJ_caRepository OBJ_id_ad,5L
|
||||
|
||||
#define OBJ_id_pkix_OCSP OBJ_ad_OCSP
|
||||
|
||||
#define SN_id_pkix_OCSP_basic "basicOCSPResponse"
|
||||
#define LN_id_pkix_OCSP_basic "Basic OCSP Response"
|
||||
#define NID_id_pkix_OCSP_basic 365
|
||||
#define OBJ_id_pkix_OCSP_basic OBJ_id_pkix_OCSP,1L
|
||||
|
||||
#define SN_id_pkix_OCSP_Nonce "Nonce"
|
||||
#define LN_id_pkix_OCSP_Nonce "OCSP Nonce"
|
||||
#define NID_id_pkix_OCSP_Nonce 366
|
||||
#define OBJ_id_pkix_OCSP_Nonce OBJ_id_pkix_OCSP,2L
|
||||
|
||||
#define SN_id_pkix_OCSP_CrlID "CrlID"
|
||||
#define LN_id_pkix_OCSP_CrlID "OCSP CRL ID"
|
||||
#define NID_id_pkix_OCSP_CrlID 367
|
||||
#define OBJ_id_pkix_OCSP_CrlID OBJ_id_pkix_OCSP,3L
|
||||
|
||||
#define SN_id_pkix_OCSP_acceptableResponses "acceptableResponses"
|
||||
#define LN_id_pkix_OCSP_acceptableResponses "Acceptable OCSP Responses"
|
||||
#define NID_id_pkix_OCSP_acceptableResponses 368
|
||||
#define OBJ_id_pkix_OCSP_acceptableResponses OBJ_id_pkix_OCSP,4L
|
||||
|
||||
#define SN_id_pkix_OCSP_noCheck "noCheck"
|
||||
#define LN_id_pkix_OCSP_noCheck "OCSP No Check"
|
||||
#define NID_id_pkix_OCSP_noCheck 369
|
||||
#define OBJ_id_pkix_OCSP_noCheck OBJ_id_pkix_OCSP,5L
|
||||
|
||||
#define SN_id_pkix_OCSP_archiveCutoff "archiveCutoff"
|
||||
#define LN_id_pkix_OCSP_archiveCutoff "OCSP Archive Cutoff"
|
||||
#define NID_id_pkix_OCSP_archiveCutoff 370
|
||||
#define OBJ_id_pkix_OCSP_archiveCutoff OBJ_id_pkix_OCSP,6L
|
||||
|
||||
#define SN_id_pkix_OCSP_serviceLocator "serviceLocator"
|
||||
#define LN_id_pkix_OCSP_serviceLocator "OCSP Service Locator"
|
||||
#define NID_id_pkix_OCSP_serviceLocator 371
|
||||
#define OBJ_id_pkix_OCSP_serviceLocator OBJ_id_pkix_OCSP,7L
|
||||
|
||||
#define SN_id_pkix_OCSP_extendedStatus "extendedStatus"
|
||||
#define LN_id_pkix_OCSP_extendedStatus "Extended OCSP Status"
|
||||
#define NID_id_pkix_OCSP_extendedStatus 372
|
||||
#define OBJ_id_pkix_OCSP_extendedStatus OBJ_id_pkix_OCSP,8L
|
||||
|
||||
#define SN_id_pkix_OCSP_valid "valid"
|
||||
#define NID_id_pkix_OCSP_valid 373
|
||||
#define OBJ_id_pkix_OCSP_valid OBJ_id_pkix_OCSP,9L
|
||||
|
||||
#define SN_id_pkix_OCSP_path "path"
|
||||
#define NID_id_pkix_OCSP_path 374
|
||||
#define OBJ_id_pkix_OCSP_path OBJ_id_pkix_OCSP,10L
|
||||
|
||||
#define SN_id_pkix_OCSP_trustRoot "trustRoot"
|
||||
#define LN_id_pkix_OCSP_trustRoot "Trust Root"
|
||||
#define NID_id_pkix_OCSP_trustRoot 375
|
||||
#define OBJ_id_pkix_OCSP_trustRoot OBJ_id_pkix_OCSP,11L
|
||||
|
||||
#define SN_algorithm "algorithm"
|
||||
#define LN_algorithm "algorithm"
|
||||
#define NID_algorithm 376
|
||||
#define OBJ_algorithm 1L,3L,14L,3L,2L
|
||||
|
||||
#define SN_md5WithRSA "RSA-NP-MD5"
|
||||
#define LN_md5WithRSA "md5WithRSA"
|
||||
#define NID_md5WithRSA 104
|
||||
#define OBJ_md5WithRSA OBJ_algorithm,3L
|
||||
|
||||
#define SN_des_ecb "DES-ECB"
|
||||
#define LN_des_ecb "des-ecb"
|
||||
#define NID_des_ecb 29
|
||||
#define OBJ_des_ecb OBJ_algorithm,6L
|
||||
|
||||
#define SN_des_cbc "DES-CBC"
|
||||
#define LN_des_cbc "des-cbc"
|
||||
#define NID_des_cbc 31
|
||||
#define OBJ_des_cbc OBJ_algorithm,7L
|
||||
|
||||
#define SN_des_ofb64 "DES-OFB"
|
||||
#define LN_des_ofb64 "des-ofb"
|
||||
#define NID_des_ofb64 45
|
||||
#define OBJ_des_ofb64 OBJ_algorithm,8L
|
||||
|
||||
#define SN_des_cfb64 "DES-CFB"
|
||||
#define LN_des_cfb64 "des-cfb"
|
||||
#define NID_des_cfb64 30
|
||||
#define OBJ_des_cfb64 OBJ_algorithm,9L
|
||||
|
||||
#define SN_rsaSignature "rsaSignature"
|
||||
#define NID_rsaSignature 377
|
||||
#define OBJ_rsaSignature OBJ_algorithm,11L
|
||||
|
||||
#define SN_dsa_2 "DSA-old"
|
||||
#define LN_dsa_2 "dsaEncryption-old"
|
||||
#define NID_dsa_2 67
|
||||
#define OBJ_dsa_2 OBJ_algorithm,12L
|
||||
|
||||
#define SN_dsaWithSHA "DSA-SHA"
|
||||
#define LN_dsaWithSHA "dsaWithSHA"
|
||||
#define NID_dsaWithSHA 66
|
||||
#define OBJ_dsaWithSHA OBJ_algorithm,13L
|
||||
|
||||
#define SN_shaWithRSAEncryption "RSA-SHA"
|
||||
#define LN_shaWithRSAEncryption "shaWithRSAEncryption"
|
||||
#define NID_shaWithRSAEncryption 42
|
||||
#define OBJ_shaWithRSAEncryption OBJ_algorithm,15L
|
||||
|
||||
#define SN_des_ede_ecb "DES-EDE"
|
||||
#define LN_des_ede_ecb "des-ede"
|
||||
#define NID_des_ede_ecb 32
|
||||
#define OBJ_des_ede_ecb OBJ_algorithm,17L
|
||||
|
||||
#define SN_des_ede3_ecb "DES-EDE3"
|
||||
#define LN_des_ede3_ecb "des-ede3"
|
||||
#define NID_des_ede3_ecb 33
|
||||
|
||||
#define SN_des_ede_cbc "DES-EDE-CBC"
|
||||
#define LN_des_ede_cbc "des-ede-cbc"
|
||||
#define NID_des_ede_cbc 43
|
||||
|
||||
#define SN_des_ede_cfb64 "DES-EDE-CFB"
|
||||
#define LN_des_ede_cfb64 "des-ede-cfb"
|
||||
#define NID_des_ede_cfb64 60
|
||||
|
||||
#define SN_des_ede3_cfb64 "DES-EDE3-CFB"
|
||||
#define LN_des_ede3_cfb64 "des-ede3-cfb"
|
||||
#define NID_des_ede3_cfb64 61
|
||||
|
||||
#define SN_des_ede_ofb64 "DES-EDE-OFB"
|
||||
#define LN_des_ede_ofb64 "des-ede-ofb"
|
||||
#define NID_des_ede_ofb64 62
|
||||
|
||||
#define SN_des_ede3_ofb64 "DES-EDE3-OFB"
|
||||
#define LN_des_ede3_ofb64 "des-ede3-ofb"
|
||||
#define NID_des_ede3_ofb64 63
|
||||
|
||||
#define SN_desx_cbc "DESX-CBC"
|
||||
#define LN_desx_cbc "desx-cbc"
|
||||
#define NID_desx_cbc 80
|
||||
|
||||
#define SN_sha "SHA"
|
||||
#define LN_sha "sha"
|
||||
#define NID_sha 41
|
||||
#define OBJ_sha OBJ_algorithm,18L
|
||||
|
||||
#define SN_sha1 "SHA1"
|
||||
#define LN_sha1 "sha1"
|
||||
#define NID_sha1 64
|
||||
#define OBJ_sha1 OBJ_algorithm,26L
|
||||
|
||||
#define SN_dsaWithSHA1_2 "DSA-SHA1-old"
|
||||
#define LN_dsaWithSHA1_2 "dsaWithSHA1-old"
|
||||
#define NID_dsaWithSHA1_2 70
|
||||
#define OBJ_dsaWithSHA1_2 OBJ_algorithm,27L
|
||||
|
||||
#define SN_sha1WithRSA "RSA-SHA1-2"
|
||||
#define LN_sha1WithRSA "sha1WithRSA"
|
||||
#define NID_sha1WithRSA 115
|
||||
#define OBJ_sha1WithRSA OBJ_algorithm,29L
|
||||
|
||||
#define SN_ripemd160 "RIPEMD160"
|
||||
#define LN_ripemd160 "ripemd160"
|
||||
#define NID_ripemd160 117
|
||||
#define OBJ_ripemd160 1L,3L,36L,3L,2L,1L
|
||||
|
||||
#define SN_ripemd160WithRSA "RSA-RIPEMD160"
|
||||
#define LN_ripemd160WithRSA "ripemd160WithRSA"
|
||||
#define NID_ripemd160WithRSA 119
|
||||
#define OBJ_ripemd160WithRSA 1L,3L,36L,3L,3L,1L,2L
|
||||
|
||||
#define SN_blake2bmac "BLAKE2BMAC"
|
||||
#define LN_blake2bmac "blake2bmac"
|
||||
#define NID_blake2bmac 1201
|
||||
#define OBJ_blake2bmac 1L,3L,6L,1L,4L,1L,1722L,12L,2L,1L
|
||||
|
||||
#define SN_blake2smac "BLAKE2SMAC"
|
||||
#define LN_blake2smac "blake2smac"
|
||||
#define NID_blake2smac 1202
|
||||
#define OBJ_blake2smac 1L,3L,6L,1L,4L,1L,1722L,12L,2L,2L
|
||||
|
||||
#define SN_blake2b512 "BLAKE2b512"
|
||||
#define LN_blake2b512 "blake2b512"
|
||||
#define NID_blake2b512 1056
|
||||
#define OBJ_blake2b512 OBJ_blake2bmac,16L
|
||||
|
||||
#define SN_blake2s256 "BLAKE2s256"
|
||||
#define LN_blake2s256 "blake2s256"
|
||||
#define NID_blake2s256 1057
|
||||
#define OBJ_blake2s256 OBJ_blake2smac,8L
|
||||
|
||||
#define SN_sxnet "SXNetID"
|
||||
#define LN_sxnet "Strong Extranet ID"
|
||||
#define NID_sxnet 143
|
||||
#define OBJ_sxnet 1L,3L,101L,1L,4L,1L
|
||||
|
||||
#define SN_X500 "X500"
|
||||
#define LN_X500 "directory services (X.500)"
|
||||
#define NID_X500 11
|
||||
#define OBJ_X500 2L,5L
|
||||
|
||||
#define SN_X509 "X509"
|
||||
#define NID_X509 12
|
||||
#define OBJ_X509 OBJ_X500,4L
|
||||
|
||||
#define SN_commonName "CN"
|
||||
#define LN_commonName "commonName"
|
||||
#define NID_commonName 13
|
||||
#define OBJ_commonName OBJ_X509,3L
|
||||
|
||||
#define SN_surname "SN"
|
||||
#define LN_surname "surname"
|
||||
#define NID_surname 100
|
||||
#define OBJ_surname OBJ_X509,4L
|
||||
|
||||
#define LN_serialNumber "serialNumber"
|
||||
#define NID_serialNumber 105
|
||||
#define OBJ_serialNumber OBJ_X509,5L
|
||||
|
||||
#define SN_countryName "C"
|
||||
#define LN_countryName "countryName"
|
||||
#define NID_countryName 14
|
||||
#define OBJ_countryName OBJ_X509,6L
|
||||
|
||||
#define SN_localityName "L"
|
||||
#define LN_localityName "localityName"
|
||||
#define NID_localityName 15
|
||||
#define OBJ_localityName OBJ_X509,7L
|
||||
|
||||
#define SN_stateOrProvinceName "ST"
|
||||
#define LN_stateOrProvinceName "stateOrProvinceName"
|
||||
#define NID_stateOrProvinceName 16
|
||||
#define OBJ_stateOrProvinceName OBJ_X509,8L
|
||||
|
||||
#define SN_streetAddress "street"
|
||||
#define LN_streetAddress "streetAddress"
|
||||
#define NID_streetAddress 660
|
||||
#define OBJ_streetAddress OBJ_X509,9L
|
||||
|
||||
#define SN_organizationName "O"
|
||||
#define LN_organizationName "organizationName"
|
||||
#define NID_organizationName 17
|
||||
#define OBJ_organizationName OBJ_X509,10L
|
||||
|
||||
#define SN_organizationalUnitName "OU"
|
||||
#define LN_organizationalUnitName "organizationalUnitName"
|
||||
#define NID_organizationalUnitName 18
|
||||
#define OBJ_organizationalUnitName OBJ_X509,11L
|
||||
|
||||
#define SN_title "title"
|
||||
#define LN_title "title"
|
||||
#define NID_title 106
|
||||
#define OBJ_title OBJ_X509,12L
|
||||
|
||||
#define LN_description "description"
|
||||
#define NID_description 107
|
||||
#define OBJ_description OBJ_X509,13L
|
||||
|
||||
#define LN_searchGuide "searchGuide"
|
||||
#define NID_searchGuide 859
|
||||
#define OBJ_searchGuide OBJ_X509,14L
|
||||
|
||||
#define LN_businessCategory "businessCategory"
|
||||
#define NID_businessCategory 860
|
||||
#define OBJ_businessCategory OBJ_X509,15L
|
||||
|
||||
#define LN_postalAddress "postalAddress"
|
||||
#define NID_postalAddress 861
|
||||
#define OBJ_postalAddress OBJ_X509,16L
|
||||
|
||||
#define LN_postalCode "postalCode"
|
||||
#define NID_postalCode 661
|
||||
#define OBJ_postalCode OBJ_X509,17L
|
||||
|
||||
#define LN_postOfficeBox "postOfficeBox"
|
||||
#define NID_postOfficeBox 862
|
||||
#define OBJ_postOfficeBox OBJ_X509,18L
|
||||
|
||||
#define LN_physicalDeliveryOfficeName "physicalDeliveryOfficeName"
|
||||
#define NID_physicalDeliveryOfficeName 863
|
||||
#define OBJ_physicalDeliveryOfficeName OBJ_X509,19L
|
||||
|
||||
#define LN_telephoneNumber "telephoneNumber"
|
||||
#define NID_telephoneNumber 864
|
||||
#define OBJ_telephoneNumber OBJ_X509,20L
|
||||
|
||||
#define LN_telexNumber "telexNumber"
|
||||
#define NID_telexNumber 865
|
||||
#define OBJ_telexNumber OBJ_X509,21L
|
||||
|
||||
#define LN_teletexTerminalIdentifier "teletexTerminalIdentifier"
|
||||
#define NID_teletexTerminalIdentifier 866
|
||||
#define OBJ_teletexTerminalIdentifier OBJ_X509,22L
|
||||
|
||||
#define LN_facsimileTelephoneNumber "facsimileTelephoneNumber"
|
||||
#define NID_facsimileTelephoneNumber 867
|
||||
#define OBJ_facsimileTelephoneNumber OBJ_X509,23L
|
||||
|
||||
#define LN_x121Address "x121Address"
|
||||
#define NID_x121Address 868
|
||||
#define OBJ_x121Address OBJ_X509,24L
|
||||
|
||||
#define LN_internationaliSDNNumber "internationaliSDNNumber"
|
||||
#define NID_internationaliSDNNumber 869
|
||||
#define OBJ_internationaliSDNNumber OBJ_X509,25L
|
||||
|
||||
#define LN_registeredAddress "registeredAddress"
|
||||
#define NID_registeredAddress 870
|
||||
#define OBJ_registeredAddress OBJ_X509,26L
|
||||
|
||||
#define LN_destinationIndicator "destinationIndicator"
|
||||
#define NID_destinationIndicator 871
|
||||
#define OBJ_destinationIndicator OBJ_X509,27L
|
||||
|
||||
#define LN_preferredDeliveryMethod "preferredDeliveryMethod"
|
||||
#define NID_preferredDeliveryMethod 872
|
||||
#define OBJ_preferredDeliveryMethod OBJ_X509,28L
|
||||
|
||||
#define LN_presentationAddress "presentationAddress"
|
||||
#define NID_presentationAddress 873
|
||||
#define OBJ_presentationAddress OBJ_X509,29L
|
||||
|
||||
#define LN_supportedApplicationContext "supportedApplicationContext"
|
||||
#define NID_supportedApplicationContext 874
|
||||
#define OBJ_supportedApplicationContext OBJ_X509,30L
|
||||
|
||||
#define SN_member "member"
|
||||
#define NID_member 875
|
||||
#define OBJ_member OBJ_X509,31L
|
||||
|
||||
#define SN_owner "owner"
|
||||
#define NID_owner 876
|
||||
#define OBJ_owner OBJ_X509,32L
|
||||
|
||||
#define LN_roleOccupant "roleOccupant"
|
||||
#define NID_roleOccupant 877
|
||||
#define OBJ_roleOccupant OBJ_X509,33L
|
||||
|
||||
#define SN_seeAlso "seeAlso"
|
||||
#define NID_seeAlso 878
|
||||
#define OBJ_seeAlso OBJ_X509,34L
|
||||
|
||||
#define LN_userPassword "userPassword"
|
||||
#define NID_userPassword 879
|
||||
#define OBJ_userPassword OBJ_X509,35L
|
||||
|
||||
#define LN_userCertificate "userCertificate"
|
||||
#define NID_userCertificate 880
|
||||
#define OBJ_userCertificate OBJ_X509,36L
|
||||
|
||||
#define LN_cACertificate "cACertificate"
|
||||
#define NID_cACertificate 881
|
||||
#define OBJ_cACertificate OBJ_X509,37L
|
||||
|
||||
#define LN_authorityRevocationList "authorityRevocationList"
|
||||
#define NID_authorityRevocationList 882
|
||||
#define OBJ_authorityRevocationList OBJ_X509,38L
|
||||
|
||||
#define LN_certificateRevocationList "certificateRevocationList"
|
||||
#define NID_certificateRevocationList 883
|
||||
#define OBJ_certificateRevocationList OBJ_X509,39L
|
||||
|
||||
#define LN_crossCertificatePair "crossCertificatePair"
|
||||
#define NID_crossCertificatePair 884
|
||||
#define OBJ_crossCertificatePair OBJ_X509,40L
|
||||
|
||||
#define SN_name "name"
|
||||
#define LN_name "name"
|
||||
#define NID_name 173
|
||||
#define OBJ_name OBJ_X509,41L
|
||||
|
||||
#define SN_givenName "GN"
|
||||
#define LN_givenName "givenName"
|
||||
#define NID_givenName 99
|
||||
#define OBJ_givenName OBJ_X509,42L
|
||||
|
||||
#define SN_initials "initials"
|
||||
#define LN_initials "initials"
|
||||
#define NID_initials 101
|
||||
#define OBJ_initials OBJ_X509,43L
|
||||
|
||||
#define LN_generationQualifier "generationQualifier"
|
||||
#define NID_generationQualifier 509
|
||||
#define OBJ_generationQualifier OBJ_X509,44L
|
||||
|
||||
#define LN_x500UniqueIdentifier "x500UniqueIdentifier"
|
||||
#define NID_x500UniqueIdentifier 503
|
||||
#define OBJ_x500UniqueIdentifier OBJ_X509,45L
|
||||
|
||||
#define SN_dnQualifier "dnQualifier"
|
||||
#define LN_dnQualifier "dnQualifier"
|
||||
#define NID_dnQualifier 174
|
||||
#define OBJ_dnQualifier OBJ_X509,46L
|
||||
|
||||
#define LN_enhancedSearchGuide "enhancedSearchGuide"
|
||||
#define NID_enhancedSearchGuide 885
|
||||
#define OBJ_enhancedSearchGuide OBJ_X509,47L
|
||||
|
||||
#define LN_protocolInformation "protocolInformation"
|
||||
#define NID_protocolInformation 886
|
||||
#define OBJ_protocolInformation OBJ_X509,48L
|
||||
|
||||
#define LN_distinguishedName "distinguishedName"
|
||||
#define NID_distinguishedName 887
|
||||
#define OBJ_distinguishedName OBJ_X509,49L
|
||||
|
||||
#define LN_uniqueMember "uniqueMember"
|
||||
#define NID_uniqueMember 888
|
||||
#define OBJ_uniqueMember OBJ_X509,50L
|
||||
|
||||
#define LN_houseIdentifier "houseIdentifier"
|
||||
#define NID_houseIdentifier 889
|
||||
#define OBJ_houseIdentifier OBJ_X509,51L
|
||||
|
||||
#define LN_supportedAlgorithms "supportedAlgorithms"
|
||||
#define NID_supportedAlgorithms 890
|
||||
#define OBJ_supportedAlgorithms OBJ_X509,52L
|
||||
|
||||
#define LN_deltaRevocationList "deltaRevocationList"
|
||||
#define NID_deltaRevocationList 891
|
||||
#define OBJ_deltaRevocationList OBJ_X509,53L
|
||||
|
||||
#define SN_dmdName "dmdName"
|
||||
#define NID_dmdName 892
|
||||
#define OBJ_dmdName OBJ_X509,54L
|
||||
|
||||
#define LN_pseudonym "pseudonym"
|
||||
#define NID_pseudonym 510
|
||||
#define OBJ_pseudonym OBJ_X509,65L
|
||||
|
||||
#define SN_role "role"
|
||||
#define LN_role "role"
|
||||
#define NID_role 400
|
||||
#define OBJ_role OBJ_X509,72L
|
||||
|
||||
#define LN_organizationIdentifier "organizationIdentifier"
|
||||
#define NID_organizationIdentifier 1089
|
||||
#define OBJ_organizationIdentifier OBJ_X509,97L
|
||||
|
||||
#define SN_countryCode3c "c3"
|
||||
#define LN_countryCode3c "countryCode3c"
|
||||
#define NID_countryCode3c 1090
|
||||
#define OBJ_countryCode3c OBJ_X509,98L
|
||||
|
||||
#define SN_countryCode3n "n3"
|
||||
#define LN_countryCode3n "countryCode3n"
|
||||
#define NID_countryCode3n 1091
|
||||
#define OBJ_countryCode3n OBJ_X509,99L
|
||||
|
||||
#define LN_dnsName "dnsName"
|
||||
#define NID_dnsName 1092
|
||||
#define OBJ_dnsName OBJ_X509,100L
|
||||
|
||||
#define SN_X500algorithms "X500algorithms"
|
||||
#define LN_X500algorithms "directory services - algorithms"
|
||||
#define NID_X500algorithms 378
|
||||
#define OBJ_X500algorithms OBJ_X500,8L
|
||||
|
||||
#define SN_rsa "RSA"
|
||||
#define LN_rsa "rsa"
|
||||
#define NID_rsa 19
|
||||
#define OBJ_rsa OBJ_X500algorithms,1L,1L
|
||||
|
||||
#define SN_mdc2WithRSA "RSA-MDC2"
|
||||
#define LN_mdc2WithRSA "mdc2WithRSA"
|
||||
#define NID_mdc2WithRSA 96
|
||||
#define OBJ_mdc2WithRSA OBJ_X500algorithms,3L,100L
|
||||
|
||||
#define SN_mdc2 "MDC2"
|
||||
#define LN_mdc2 "mdc2"
|
||||
#define NID_mdc2 95
|
||||
#define OBJ_mdc2 OBJ_X500algorithms,3L,101L
|
||||
|
||||
#define SN_id_ce "id-ce"
|
||||
#define NID_id_ce 81
|
||||
#define OBJ_id_ce OBJ_X500,29L
|
||||
|
||||
#define SN_subject_directory_attributes "subjectDirectoryAttributes"
|
||||
#define LN_subject_directory_attributes "X509v3 Subject Directory Attributes"
|
||||
#define NID_subject_directory_attributes 769
|
||||
#define OBJ_subject_directory_attributes OBJ_id_ce,9L
|
||||
|
||||
#define SN_subject_key_identifier "subjectKeyIdentifier"
|
||||
#define LN_subject_key_identifier "X509v3 Subject Key Identifier"
|
||||
#define NID_subject_key_identifier 82
|
||||
#define OBJ_subject_key_identifier OBJ_id_ce,14L
|
||||
|
||||
#define SN_key_usage "keyUsage"
|
||||
#define LN_key_usage "X509v3 Key Usage"
|
||||
#define NID_key_usage 83
|
||||
#define OBJ_key_usage OBJ_id_ce,15L
|
||||
|
||||
#define SN_private_key_usage_period "privateKeyUsagePeriod"
|
||||
#define LN_private_key_usage_period "X509v3 Private Key Usage Period"
|
||||
#define NID_private_key_usage_period 84
|
||||
#define OBJ_private_key_usage_period OBJ_id_ce,16L
|
||||
|
||||
#define SN_subject_alt_name "subjectAltName"
|
||||
#define LN_subject_alt_name "X509v3 Subject Alternative Name"
|
||||
#define NID_subject_alt_name 85
|
||||
#define OBJ_subject_alt_name OBJ_id_ce,17L
|
||||
|
||||
#define SN_issuer_alt_name "issuerAltName"
|
||||
#define LN_issuer_alt_name "X509v3 Issuer Alternative Name"
|
||||
#define NID_issuer_alt_name 86
|
||||
#define OBJ_issuer_alt_name OBJ_id_ce,18L
|
||||
|
||||
#define SN_basic_constraints "basicConstraints"
|
||||
#define LN_basic_constraints "X509v3 Basic Constraints"
|
||||
#define NID_basic_constraints 87
|
||||
#define OBJ_basic_constraints OBJ_id_ce,19L
|
||||
|
||||
#define SN_crl_number "crlNumber"
|
||||
#define LN_crl_number "X509v3 CRL Number"
|
||||
#define NID_crl_number 88
|
||||
#define OBJ_crl_number OBJ_id_ce,20L
|
||||
|
||||
#define SN_crl_reason "CRLReason"
|
||||
#define LN_crl_reason "X509v3 CRL Reason Code"
|
||||
#define NID_crl_reason 141
|
||||
#define OBJ_crl_reason OBJ_id_ce,21L
|
||||
|
||||
#define SN_invalidity_date "invalidityDate"
|
||||
#define LN_invalidity_date "Invalidity Date"
|
||||
#define NID_invalidity_date 142
|
||||
#define OBJ_invalidity_date OBJ_id_ce,24L
|
||||
|
||||
#define SN_delta_crl "deltaCRL"
|
||||
#define LN_delta_crl "X509v3 Delta CRL Indicator"
|
||||
#define NID_delta_crl 140
|
||||
#define OBJ_delta_crl OBJ_id_ce,27L
|
||||
|
||||
#define SN_issuing_distribution_point "issuingDistributionPoint"
|
||||
#define LN_issuing_distribution_point "X509v3 Issuing Distribution Point"
|
||||
#define NID_issuing_distribution_point 770
|
||||
#define OBJ_issuing_distribution_point OBJ_id_ce,28L
|
||||
|
||||
#define SN_certificate_issuer "certificateIssuer"
|
||||
#define LN_certificate_issuer "X509v3 Certificate Issuer"
|
||||
#define NID_certificate_issuer 771
|
||||
#define OBJ_certificate_issuer OBJ_id_ce,29L
|
||||
|
||||
#define SN_name_constraints "nameConstraints"
|
||||
#define LN_name_constraints "X509v3 Name Constraints"
|
||||
#define NID_name_constraints 666
|
||||
#define OBJ_name_constraints OBJ_id_ce,30L
|
||||
|
||||
#define SN_crl_distribution_points "crlDistributionPoints"
|
||||
#define LN_crl_distribution_points "X509v3 CRL Distribution Points"
|
||||
#define NID_crl_distribution_points 103
|
||||
#define OBJ_crl_distribution_points OBJ_id_ce,31L
|
||||
|
||||
#define SN_certificate_policies "certificatePolicies"
|
||||
#define LN_certificate_policies "X509v3 Certificate Policies"
|
||||
#define NID_certificate_policies 89
|
||||
#define OBJ_certificate_policies OBJ_id_ce,32L
|
||||
|
||||
#define SN_any_policy "anyPolicy"
|
||||
#define LN_any_policy "X509v3 Any Policy"
|
||||
#define NID_any_policy 746
|
||||
#define OBJ_any_policy OBJ_certificate_policies,0L
|
||||
|
||||
#define SN_policy_mappings "policyMappings"
|
||||
#define LN_policy_mappings "X509v3 Policy Mappings"
|
||||
#define NID_policy_mappings 747
|
||||
#define OBJ_policy_mappings OBJ_id_ce,33L
|
||||
|
||||
#define SN_authority_key_identifier "authorityKeyIdentifier"
|
||||
#define LN_authority_key_identifier "X509v3 Authority Key Identifier"
|
||||
#define NID_authority_key_identifier 90
|
||||
#define OBJ_authority_key_identifier OBJ_id_ce,35L
|
||||
|
||||
#define SN_policy_constraints "policyConstraints"
|
||||
#define LN_policy_constraints "X509v3 Policy Constraints"
|
||||
#define NID_policy_constraints 401
|
||||
#define OBJ_policy_constraints OBJ_id_ce,36L
|
||||
|
||||
#define SN_ext_key_usage "extendedKeyUsage"
|
||||
#define LN_ext_key_usage "X509v3 Extended Key Usage"
|
||||
#define NID_ext_key_usage 126
|
||||
#define OBJ_ext_key_usage OBJ_id_ce,37L
|
||||
|
||||
#define SN_freshest_crl "freshestCRL"
|
||||
#define LN_freshest_crl "X509v3 Freshest CRL"
|
||||
#define NID_freshest_crl 857
|
||||
#define OBJ_freshest_crl OBJ_id_ce,46L
|
||||
|
||||
#define SN_inhibit_any_policy "inhibitAnyPolicy"
|
||||
#define LN_inhibit_any_policy "X509v3 Inhibit Any Policy"
|
||||
#define NID_inhibit_any_policy 748
|
||||
#define OBJ_inhibit_any_policy OBJ_id_ce,54L
|
||||
|
||||
#define SN_target_information "targetInformation"
|
||||
#define LN_target_information "X509v3 AC Targeting"
|
||||
#define NID_target_information 402
|
||||
#define OBJ_target_information OBJ_id_ce,55L
|
||||
|
||||
#define SN_no_rev_avail "noRevAvail"
|
||||
#define LN_no_rev_avail "X509v3 No Revocation Available"
|
||||
#define NID_no_rev_avail 403
|
||||
#define OBJ_no_rev_avail OBJ_id_ce,56L
|
||||
|
||||
#define SN_anyExtendedKeyUsage "anyExtendedKeyUsage"
|
||||
#define LN_anyExtendedKeyUsage "Any Extended Key Usage"
|
||||
#define NID_anyExtendedKeyUsage 910
|
||||
#define OBJ_anyExtendedKeyUsage OBJ_ext_key_usage,0L
|
||||
|
||||
#define SN_netscape "Netscape"
|
||||
#define LN_netscape "Netscape Communications Corp."
|
||||
#define NID_netscape 57
|
||||
#define OBJ_netscape 2L,16L,840L,1L,113730L
|
||||
|
||||
#define SN_netscape_cert_extension "nsCertExt"
|
||||
#define LN_netscape_cert_extension "Netscape Certificate Extension"
|
||||
#define NID_netscape_cert_extension 58
|
||||
#define OBJ_netscape_cert_extension OBJ_netscape,1L
|
||||
|
||||
#define SN_netscape_data_type "nsDataType"
|
||||
#define LN_netscape_data_type "Netscape Data Type"
|
||||
#define NID_netscape_data_type 59
|
||||
#define OBJ_netscape_data_type OBJ_netscape,2L
|
||||
|
||||
#define SN_netscape_cert_type "nsCertType"
|
||||
#define LN_netscape_cert_type "Netscape Cert Type"
|
||||
#define NID_netscape_cert_type 71
|
||||
#define OBJ_netscape_cert_type OBJ_netscape_cert_extension,1L
|
||||
|
||||
#define SN_netscape_base_url "nsBaseUrl"
|
||||
#define LN_netscape_base_url "Netscape Base Url"
|
||||
#define NID_netscape_base_url 72
|
||||
#define OBJ_netscape_base_url OBJ_netscape_cert_extension,2L
|
||||
|
||||
#define SN_netscape_revocation_url "nsRevocationUrl"
|
||||
#define LN_netscape_revocation_url "Netscape Revocation Url"
|
||||
#define NID_netscape_revocation_url 73
|
||||
#define OBJ_netscape_revocation_url OBJ_netscape_cert_extension,3L
|
||||
|
||||
#define SN_netscape_ca_revocation_url "nsCaRevocationUrl"
|
||||
#define LN_netscape_ca_revocation_url "Netscape CA Revocation Url"
|
||||
#define NID_netscape_ca_revocation_url 74
|
||||
#define OBJ_netscape_ca_revocation_url OBJ_netscape_cert_extension,4L
|
||||
|
||||
#define SN_netscape_renewal_url "nsRenewalUrl"
|
||||
#define LN_netscape_renewal_url "Netscape Renewal Url"
|
||||
#define NID_netscape_renewal_url 75
|
||||
#define OBJ_netscape_renewal_url OBJ_netscape_cert_extension,7L
|
||||
|
||||
#define SN_netscape_ca_policy_url "nsCaPolicyUrl"
|
||||
#define LN_netscape_ca_policy_url "Netscape CA Policy Url"
|
||||
#define NID_netscape_ca_policy_url 76
|
||||
#define OBJ_netscape_ca_policy_url OBJ_netscape_cert_extension,8L
|
||||
|
||||
#define SN_netscape_ssl_server_name "nsSslServerName"
|
||||
#define LN_netscape_ssl_server_name "Netscape SSL Server Name"
|
||||
#define NID_netscape_ssl_server_name 77
|
||||
#define OBJ_netscape_ssl_server_name OBJ_netscape_cert_extension,12L
|
||||
|
||||
#define SN_netscape_comment "nsComment"
|
||||
#define LN_netscape_comment "Netscape Comment"
|
||||
#define NID_netscape_comment 78
|
||||
#define OBJ_netscape_comment OBJ_netscape_cert_extension,13L
|
||||
|
||||
#define SN_netscape_cert_sequence "nsCertSequence"
|
||||
#define LN_netscape_cert_sequence "Netscape Certificate Sequence"
|
||||
#define NID_netscape_cert_sequence 79
|
||||
#define OBJ_netscape_cert_sequence OBJ_netscape_data_type,5L
|
||||
|
||||
#define SN_ns_sgc "nsSGC"
|
||||
#define LN_ns_sgc "Netscape Server Gated Crypto"
|
||||
#define NID_ns_sgc 139
|
||||
#define OBJ_ns_sgc OBJ_netscape,4L,1L
|
||||
|
||||
#define SN_org "ORG"
|
||||
#define LN_org "org"
|
||||
#define NID_org 379
|
||||
#define OBJ_org OBJ_iso,3L
|
||||
|
||||
#define SN_dod "DOD"
|
||||
#define LN_dod "dod"
|
||||
#define NID_dod 380
|
||||
#define OBJ_dod OBJ_org,6L
|
||||
|
||||
#define SN_iana "IANA"
|
||||
#define LN_iana "iana"
|
||||
#define NID_iana 381
|
||||
#define OBJ_iana OBJ_dod,1L
|
||||
|
||||
#define OBJ_internet OBJ_iana
|
||||
|
||||
#define SN_Directory "directory"
|
||||
#define LN_Directory "Directory"
|
||||
#define NID_Directory 382
|
||||
#define OBJ_Directory OBJ_internet,1L
|
||||
|
||||
#define SN_Management "mgmt"
|
||||
#define LN_Management "Management"
|
||||
#define NID_Management 383
|
||||
#define OBJ_Management OBJ_internet,2L
|
||||
|
||||
#define SN_Experimental "experimental"
|
||||
#define LN_Experimental "Experimental"
|
||||
#define NID_Experimental 384
|
||||
#define OBJ_Experimental OBJ_internet,3L
|
||||
|
||||
#define SN_Private "private"
|
||||
#define LN_Private "Private"
|
||||
#define NID_Private 385
|
||||
#define OBJ_Private OBJ_internet,4L
|
||||
|
||||
#define SN_Security "security"
|
||||
#define LN_Security "Security"
|
||||
#define NID_Security 386
|
||||
#define OBJ_Security OBJ_internet,5L
|
||||
|
||||
#define SN_SNMPv2 "snmpv2"
|
||||
#define LN_SNMPv2 "SNMPv2"
|
||||
#define NID_SNMPv2 387
|
||||
#define OBJ_SNMPv2 OBJ_internet,6L
|
||||
|
||||
#define LN_Mail "Mail"
|
||||
#define NID_Mail 388
|
||||
#define OBJ_Mail OBJ_internet,7L
|
||||
|
||||
#define SN_Enterprises "enterprises"
|
||||
#define LN_Enterprises "Enterprises"
|
||||
#define NID_Enterprises 389
|
||||
#define OBJ_Enterprises OBJ_Private,1L
|
||||
|
||||
#define SN_dcObject "dcobject"
|
||||
#define LN_dcObject "dcObject"
|
||||
#define NID_dcObject 390
|
||||
#define OBJ_dcObject OBJ_Enterprises,1466L,344L
|
||||
|
||||
#define SN_mime_mhs "mime-mhs"
|
||||
#define LN_mime_mhs "MIME MHS"
|
||||
#define NID_mime_mhs 504
|
||||
#define OBJ_mime_mhs OBJ_Mail,1L
|
||||
|
||||
#define SN_mime_mhs_headings "mime-mhs-headings"
|
||||
#define LN_mime_mhs_headings "mime-mhs-headings"
|
||||
#define NID_mime_mhs_headings 505
|
||||
#define OBJ_mime_mhs_headings OBJ_mime_mhs,1L
|
||||
|
||||
#define SN_mime_mhs_bodies "mime-mhs-bodies"
|
||||
#define LN_mime_mhs_bodies "mime-mhs-bodies"
|
||||
#define NID_mime_mhs_bodies 506
|
||||
#define OBJ_mime_mhs_bodies OBJ_mime_mhs,2L
|
||||
|
||||
#define SN_id_hex_partial_message "id-hex-partial-message"
|
||||
#define LN_id_hex_partial_message "id-hex-partial-message"
|
||||
#define NID_id_hex_partial_message 507
|
||||
#define OBJ_id_hex_partial_message OBJ_mime_mhs_headings,1L
|
||||
|
||||
#define SN_id_hex_multipart_message "id-hex-multipart-message"
|
||||
#define LN_id_hex_multipart_message "id-hex-multipart-message"
|
||||
#define NID_id_hex_multipart_message 508
|
||||
#define OBJ_id_hex_multipart_message OBJ_mime_mhs_headings,2L
|
||||
|
||||
#define SN_zlib_compression "ZLIB"
|
||||
#define LN_zlib_compression "zlib compression"
|
||||
#define NID_zlib_compression 125
|
||||
#define OBJ_zlib_compression OBJ_id_smime_alg,8L
|
||||
|
||||
#define OBJ_csor 2L,16L,840L,1L,101L,3L
|
||||
|
||||
#define OBJ_nistAlgorithms OBJ_csor,4L
|
||||
|
||||
#define OBJ_aes OBJ_nistAlgorithms,1L
|
||||
|
||||
#define SN_aes_128_ecb "AES-128-ECB"
|
||||
#define LN_aes_128_ecb "aes-128-ecb"
|
||||
#define NID_aes_128_ecb 418
|
||||
#define OBJ_aes_128_ecb OBJ_aes,1L
|
||||
|
||||
#define SN_aes_128_cbc "AES-128-CBC"
|
||||
#define LN_aes_128_cbc "aes-128-cbc"
|
||||
#define NID_aes_128_cbc 419
|
||||
#define OBJ_aes_128_cbc OBJ_aes,2L
|
||||
|
||||
#define SN_aes_128_ofb128 "AES-128-OFB"
|
||||
#define LN_aes_128_ofb128 "aes-128-ofb"
|
||||
#define NID_aes_128_ofb128 420
|
||||
#define OBJ_aes_128_ofb128 OBJ_aes,3L
|
||||
|
||||
#define SN_aes_128_cfb128 "AES-128-CFB"
|
||||
#define LN_aes_128_cfb128 "aes-128-cfb"
|
||||
#define NID_aes_128_cfb128 421
|
||||
#define OBJ_aes_128_cfb128 OBJ_aes,4L
|
||||
|
||||
#define SN_id_aes128_wrap "id-aes128-wrap"
|
||||
#define NID_id_aes128_wrap 788
|
||||
#define OBJ_id_aes128_wrap OBJ_aes,5L
|
||||
|
||||
#define SN_aes_128_gcm "id-aes128-GCM"
|
||||
#define LN_aes_128_gcm "aes-128-gcm"
|
||||
#define NID_aes_128_gcm 895
|
||||
#define OBJ_aes_128_gcm OBJ_aes,6L
|
||||
|
||||
#define SN_aes_128_ccm "id-aes128-CCM"
|
||||
#define LN_aes_128_ccm "aes-128-ccm"
|
||||
#define NID_aes_128_ccm 896
|
||||
#define OBJ_aes_128_ccm OBJ_aes,7L
|
||||
|
||||
#define SN_id_aes128_wrap_pad "id-aes128-wrap-pad"
|
||||
#define NID_id_aes128_wrap_pad 897
|
||||
#define OBJ_id_aes128_wrap_pad OBJ_aes,8L
|
||||
|
||||
#define SN_aes_192_ecb "AES-192-ECB"
|
||||
#define LN_aes_192_ecb "aes-192-ecb"
|
||||
#define NID_aes_192_ecb 422
|
||||
#define OBJ_aes_192_ecb OBJ_aes,21L
|
||||
|
||||
#define SN_aes_192_cbc "AES-192-CBC"
|
||||
#define LN_aes_192_cbc "aes-192-cbc"
|
||||
#define NID_aes_192_cbc 423
|
||||
#define OBJ_aes_192_cbc OBJ_aes,22L
|
||||
|
||||
#define SN_aes_192_ofb128 "AES-192-OFB"
|
||||
#define LN_aes_192_ofb128 "aes-192-ofb"
|
||||
#define NID_aes_192_ofb128 424
|
||||
#define OBJ_aes_192_ofb128 OBJ_aes,23L
|
||||
|
||||
#define SN_aes_192_cfb128 "AES-192-CFB"
|
||||
#define LN_aes_192_cfb128 "aes-192-cfb"
|
||||
#define NID_aes_192_cfb128 425
|
||||
#define OBJ_aes_192_cfb128 OBJ_aes,24L
|
||||
|
||||
#define SN_id_aes192_wrap "id-aes192-wrap"
|
||||
#define NID_id_aes192_wrap 789
|
||||
#define OBJ_id_aes192_wrap OBJ_aes,25L
|
||||
|
||||
#define SN_aes_192_gcm "id-aes192-GCM"
|
||||
#define LN_aes_192_gcm "aes-192-gcm"
|
||||
#define NID_aes_192_gcm 898
|
||||
#define OBJ_aes_192_gcm OBJ_aes,26L
|
||||
|
||||
#define SN_aes_192_ccm "id-aes192-CCM"
|
||||
#define LN_aes_192_ccm "aes-192-ccm"
|
||||
#define NID_aes_192_ccm 899
|
||||
#define OBJ_aes_192_ccm OBJ_aes,27L
|
||||
|
||||
#define SN_id_aes192_wrap_pad "id-aes192-wrap-pad"
|
||||
#define NID_id_aes192_wrap_pad 900
|
||||
#define OBJ_id_aes192_wrap_pad OBJ_aes,28L
|
||||
|
||||
#define SN_aes_256_ecb "AES-256-ECB"
|
||||
#define LN_aes_256_ecb "aes-256-ecb"
|
||||
#define NID_aes_256_ecb 426
|
||||
#define OBJ_aes_256_ecb OBJ_aes,41L
|
||||
|
||||
#define SN_aes_256_cbc "AES-256-CBC"
|
||||
#define LN_aes_256_cbc "aes-256-cbc"
|
||||
#define NID_aes_256_cbc 427
|
||||
#define OBJ_aes_256_cbc OBJ_aes,42L
|
||||
|
||||
#define SN_aes_256_ofb128 "AES-256-OFB"
|
||||
#define LN_aes_256_ofb128 "aes-256-ofb"
|
||||
#define NID_aes_256_ofb128 428
|
||||
#define OBJ_aes_256_ofb128 OBJ_aes,43L
|
||||
|
||||
#define SN_aes_256_cfb128 "AES-256-CFB"
|
||||
#define LN_aes_256_cfb128 "aes-256-cfb"
|
||||
#define NID_aes_256_cfb128 429
|
||||
#define OBJ_aes_256_cfb128 OBJ_aes,44L
|
||||
|
||||
#define SN_id_aes256_wrap "id-aes256-wrap"
|
||||
#define NID_id_aes256_wrap 790
|
||||
#define OBJ_id_aes256_wrap OBJ_aes,45L
|
||||
|
||||
#define SN_aes_256_gcm "id-aes256-GCM"
|
||||
#define LN_aes_256_gcm "aes-256-gcm"
|
||||
#define NID_aes_256_gcm 901
|
||||
#define OBJ_aes_256_gcm OBJ_aes,46L
|
||||
|
||||
#define SN_aes_256_ccm "id-aes256-CCM"
|
||||
#define LN_aes_256_ccm "aes-256-ccm"
|
||||
#define NID_aes_256_ccm 902
|
||||
#define OBJ_aes_256_ccm OBJ_aes,47L
|
||||
|
||||
#define SN_id_aes256_wrap_pad "id-aes256-wrap-pad"
|
||||
#define NID_id_aes256_wrap_pad 903
|
||||
#define OBJ_id_aes256_wrap_pad OBJ_aes,48L
|
||||
|
||||
#define SN_aes_128_xts "AES-128-XTS"
|
||||
#define LN_aes_128_xts "aes-128-xts"
|
||||
#define NID_aes_128_xts 913
|
||||
#define OBJ_aes_128_xts OBJ_ieee_siswg,0L,1L,1L
|
||||
|
||||
#define SN_aes_256_xts "AES-256-XTS"
|
||||
#define LN_aes_256_xts "aes-256-xts"
|
||||
#define NID_aes_256_xts 914
|
||||
#define OBJ_aes_256_xts OBJ_ieee_siswg,0L,1L,2L
|
||||
|
||||
#define SN_aes_128_cfb1 "AES-128-CFB1"
|
||||
#define LN_aes_128_cfb1 "aes-128-cfb1"
|
||||
#define NID_aes_128_cfb1 650
|
||||
|
||||
#define SN_aes_192_cfb1 "AES-192-CFB1"
|
||||
#define LN_aes_192_cfb1 "aes-192-cfb1"
|
||||
#define NID_aes_192_cfb1 651
|
||||
|
||||
#define SN_aes_256_cfb1 "AES-256-CFB1"
|
||||
#define LN_aes_256_cfb1 "aes-256-cfb1"
|
||||
#define NID_aes_256_cfb1 652
|
||||
|
||||
#define SN_aes_128_cfb8 "AES-128-CFB8"
|
||||
#define LN_aes_128_cfb8 "aes-128-cfb8"
|
||||
#define NID_aes_128_cfb8 653
|
||||
|
||||
#define SN_aes_192_cfb8 "AES-192-CFB8"
|
||||
#define LN_aes_192_cfb8 "aes-192-cfb8"
|
||||
#define NID_aes_192_cfb8 654
|
||||
|
||||
#define SN_aes_256_cfb8 "AES-256-CFB8"
|
||||
#define LN_aes_256_cfb8 "aes-256-cfb8"
|
||||
#define NID_aes_256_cfb8 655
|
||||
|
||||
#define SN_aes_128_ctr "AES-128-CTR"
|
||||
#define LN_aes_128_ctr "aes-128-ctr"
|
||||
#define NID_aes_128_ctr 904
|
||||
|
||||
#define SN_aes_192_ctr "AES-192-CTR"
|
||||
#define LN_aes_192_ctr "aes-192-ctr"
|
||||
#define NID_aes_192_ctr 905
|
||||
|
||||
#define SN_aes_256_ctr "AES-256-CTR"
|
||||
#define LN_aes_256_ctr "aes-256-ctr"
|
||||
#define NID_aes_256_ctr 906
|
||||
|
||||
#define SN_aes_128_ocb "AES-128-OCB"
|
||||
#define LN_aes_128_ocb "aes-128-ocb"
|
||||
#define NID_aes_128_ocb 958
|
||||
|
||||
#define SN_aes_192_ocb "AES-192-OCB"
|
||||
#define LN_aes_192_ocb "aes-192-ocb"
|
||||
#define NID_aes_192_ocb 959
|
||||
|
||||
#define SN_aes_256_ocb "AES-256-OCB"
|
||||
#define LN_aes_256_ocb "aes-256-ocb"
|
||||
#define NID_aes_256_ocb 960
|
||||
|
||||
#define SN_des_cfb1 "DES-CFB1"
|
||||
#define LN_des_cfb1 "des-cfb1"
|
||||
#define NID_des_cfb1 656
|
||||
|
||||
#define SN_des_cfb8 "DES-CFB8"
|
||||
#define LN_des_cfb8 "des-cfb8"
|
||||
#define NID_des_cfb8 657
|
||||
|
||||
#define SN_des_ede3_cfb1 "DES-EDE3-CFB1"
|
||||
#define LN_des_ede3_cfb1 "des-ede3-cfb1"
|
||||
#define NID_des_ede3_cfb1 658
|
||||
|
||||
#define SN_des_ede3_cfb8 "DES-EDE3-CFB8"
|
||||
#define LN_des_ede3_cfb8 "des-ede3-cfb8"
|
||||
#define NID_des_ede3_cfb8 659
|
||||
|
||||
#define OBJ_nist_hashalgs OBJ_nistAlgorithms,2L
|
||||
|
||||
#define SN_sha256 "SHA256"
|
||||
#define LN_sha256 "sha256"
|
||||
#define NID_sha256 672
|
||||
#define OBJ_sha256 OBJ_nist_hashalgs,1L
|
||||
|
||||
#define SN_sha384 "SHA384"
|
||||
#define LN_sha384 "sha384"
|
||||
#define NID_sha384 673
|
||||
#define OBJ_sha384 OBJ_nist_hashalgs,2L
|
||||
|
||||
#define SN_sha512 "SHA512"
|
||||
#define LN_sha512 "sha512"
|
||||
#define NID_sha512 674
|
||||
#define OBJ_sha512 OBJ_nist_hashalgs,3L
|
||||
|
||||
#define SN_sha224 "SHA224"
|
||||
#define LN_sha224 "sha224"
|
||||
#define NID_sha224 675
|
||||
#define OBJ_sha224 OBJ_nist_hashalgs,4L
|
||||
|
||||
#define SN_sha512_224 "SHA512-224"
|
||||
#define LN_sha512_224 "sha512-224"
|
||||
#define NID_sha512_224 1094
|
||||
#define OBJ_sha512_224 OBJ_nist_hashalgs,5L
|
||||
|
||||
#define SN_sha512_256 "SHA512-256"
|
||||
#define LN_sha512_256 "sha512-256"
|
||||
#define NID_sha512_256 1095
|
||||
#define OBJ_sha512_256 OBJ_nist_hashalgs,6L
|
||||
|
||||
#define SN_sha3_224 "SHA3-224"
|
||||
#define LN_sha3_224 "sha3-224"
|
||||
#define NID_sha3_224 1096
|
||||
#define OBJ_sha3_224 OBJ_nist_hashalgs,7L
|
||||
|
||||
#define SN_sha3_256 "SHA3-256"
|
||||
#define LN_sha3_256 "sha3-256"
|
||||
#define NID_sha3_256 1097
|
||||
#define OBJ_sha3_256 OBJ_nist_hashalgs,8L
|
||||
|
||||
#define SN_sha3_384 "SHA3-384"
|
||||
#define LN_sha3_384 "sha3-384"
|
||||
#define NID_sha3_384 1098
|
||||
#define OBJ_sha3_384 OBJ_nist_hashalgs,9L
|
||||
|
||||
#define SN_sha3_512 "SHA3-512"
|
||||
#define LN_sha3_512 "sha3-512"
|
||||
#define NID_sha3_512 1099
|
||||
#define OBJ_sha3_512 OBJ_nist_hashalgs,10L
|
||||
|
||||
#define SN_shake128 "SHAKE128"
|
||||
#define LN_shake128 "shake128"
|
||||
#define NID_shake128 1100
|
||||
#define OBJ_shake128 OBJ_nist_hashalgs,11L
|
||||
|
||||
#define SN_shake256 "SHAKE256"
|
||||
#define LN_shake256 "shake256"
|
||||
#define NID_shake256 1101
|
||||
#define OBJ_shake256 OBJ_nist_hashalgs,12L
|
||||
|
||||
#define SN_hmac_sha3_224 "id-hmacWithSHA3-224"
|
||||
#define LN_hmac_sha3_224 "hmac-sha3-224"
|
||||
#define NID_hmac_sha3_224 1102
|
||||
#define OBJ_hmac_sha3_224 OBJ_nist_hashalgs,13L
|
||||
|
||||
#define SN_hmac_sha3_256 "id-hmacWithSHA3-256"
|
||||
#define LN_hmac_sha3_256 "hmac-sha3-256"
|
||||
#define NID_hmac_sha3_256 1103
|
||||
#define OBJ_hmac_sha3_256 OBJ_nist_hashalgs,14L
|
||||
|
||||
#define SN_hmac_sha3_384 "id-hmacWithSHA3-384"
|
||||
#define LN_hmac_sha3_384 "hmac-sha3-384"
|
||||
#define NID_hmac_sha3_384 1104
|
||||
#define OBJ_hmac_sha3_384 OBJ_nist_hashalgs,15L
|
||||
|
||||
#define SN_hmac_sha3_512 "id-hmacWithSHA3-512"
|
||||
#define LN_hmac_sha3_512 "hmac-sha3-512"
|
||||
#define NID_hmac_sha3_512 1105
|
||||
#define OBJ_hmac_sha3_512 OBJ_nist_hashalgs,16L
|
||||
|
||||
#define SN_kmac128 "KMAC128"
|
||||
#define LN_kmac128 "kmac128"
|
||||
#define NID_kmac128 1196
|
||||
#define OBJ_kmac128 OBJ_nist_hashalgs,19L
|
||||
|
||||
#define SN_kmac256 "KMAC256"
|
||||
#define LN_kmac256 "kmac256"
|
||||
#define NID_kmac256 1197
|
||||
#define OBJ_kmac256 OBJ_nist_hashalgs,20L
|
||||
|
||||
#define OBJ_dsa_with_sha2 OBJ_nistAlgorithms,3L
|
||||
|
||||
#define SN_dsa_with_SHA224 "dsa_with_SHA224"
|
||||
#define NID_dsa_with_SHA224 802
|
||||
#define OBJ_dsa_with_SHA224 OBJ_dsa_with_sha2,1L
|
||||
|
||||
#define SN_dsa_with_SHA256 "dsa_with_SHA256"
|
||||
#define NID_dsa_with_SHA256 803
|
||||
#define OBJ_dsa_with_SHA256 OBJ_dsa_with_sha2,2L
|
||||
|
||||
#define OBJ_sigAlgs OBJ_nistAlgorithms,3L
|
||||
|
||||
#define SN_dsa_with_SHA384 "id-dsa-with-sha384"
|
||||
#define LN_dsa_with_SHA384 "dsa_with_SHA384"
|
||||
#define NID_dsa_with_SHA384 1106
|
||||
#define OBJ_dsa_with_SHA384 OBJ_sigAlgs,3L
|
||||
|
||||
#define SN_dsa_with_SHA512 "id-dsa-with-sha512"
|
||||
#define LN_dsa_with_SHA512 "dsa_with_SHA512"
|
||||
#define NID_dsa_with_SHA512 1107
|
||||
#define OBJ_dsa_with_SHA512 OBJ_sigAlgs,4L
|
||||
|
||||
#define SN_dsa_with_SHA3_224 "id-dsa-with-sha3-224"
|
||||
#define LN_dsa_with_SHA3_224 "dsa_with_SHA3-224"
|
||||
#define NID_dsa_with_SHA3_224 1108
|
||||
#define OBJ_dsa_with_SHA3_224 OBJ_sigAlgs,5L
|
||||
|
||||
#define SN_dsa_with_SHA3_256 "id-dsa-with-sha3-256"
|
||||
#define LN_dsa_with_SHA3_256 "dsa_with_SHA3-256"
|
||||
#define NID_dsa_with_SHA3_256 1109
|
||||
#define OBJ_dsa_with_SHA3_256 OBJ_sigAlgs,6L
|
||||
|
||||
#define SN_dsa_with_SHA3_384 "id-dsa-with-sha3-384"
|
||||
#define LN_dsa_with_SHA3_384 "dsa_with_SHA3-384"
|
||||
#define NID_dsa_with_SHA3_384 1110
|
||||
#define OBJ_dsa_with_SHA3_384 OBJ_sigAlgs,7L
|
||||
|
||||
#define SN_dsa_with_SHA3_512 "id-dsa-with-sha3-512"
|
||||
#define LN_dsa_with_SHA3_512 "dsa_with_SHA3-512"
|
||||
#define NID_dsa_with_SHA3_512 1111
|
||||
#define OBJ_dsa_with_SHA3_512 OBJ_sigAlgs,8L
|
||||
|
||||
#define SN_ecdsa_with_SHA3_224 "id-ecdsa-with-sha3-224"
|
||||
#define LN_ecdsa_with_SHA3_224 "ecdsa_with_SHA3-224"
|
||||
#define NID_ecdsa_with_SHA3_224 1112
|
||||
#define OBJ_ecdsa_with_SHA3_224 OBJ_sigAlgs,9L
|
||||
|
||||
#define SN_ecdsa_with_SHA3_256 "id-ecdsa-with-sha3-256"
|
||||
#define LN_ecdsa_with_SHA3_256 "ecdsa_with_SHA3-256"
|
||||
#define NID_ecdsa_with_SHA3_256 1113
|
||||
#define OBJ_ecdsa_with_SHA3_256 OBJ_sigAlgs,10L
|
||||
|
||||
#define SN_ecdsa_with_SHA3_384 "id-ecdsa-with-sha3-384"
|
||||
#define LN_ecdsa_with_SHA3_384 "ecdsa_with_SHA3-384"
|
||||
#define NID_ecdsa_with_SHA3_384 1114
|
||||
#define OBJ_ecdsa_with_SHA3_384 OBJ_sigAlgs,11L
|
||||
|
||||
#define SN_ecdsa_with_SHA3_512 "id-ecdsa-with-sha3-512"
|
||||
#define LN_ecdsa_with_SHA3_512 "ecdsa_with_SHA3-512"
|
||||
#define NID_ecdsa_with_SHA3_512 1115
|
||||
#define OBJ_ecdsa_with_SHA3_512 OBJ_sigAlgs,12L
|
||||
|
||||
#define SN_RSA_SHA3_224 "id-rsassa-pkcs1-v1_5-with-sha3-224"
|
||||
#define LN_RSA_SHA3_224 "RSA-SHA3-224"
|
||||
#define NID_RSA_SHA3_224 1116
|
||||
#define OBJ_RSA_SHA3_224 OBJ_sigAlgs,13L
|
||||
|
||||
#define SN_RSA_SHA3_256 "id-rsassa-pkcs1-v1_5-with-sha3-256"
|
||||
#define LN_RSA_SHA3_256 "RSA-SHA3-256"
|
||||
#define NID_RSA_SHA3_256 1117
|
||||
#define OBJ_RSA_SHA3_256 OBJ_sigAlgs,14L
|
||||
|
||||
#define SN_RSA_SHA3_384 "id-rsassa-pkcs1-v1_5-with-sha3-384"
|
||||
#define LN_RSA_SHA3_384 "RSA-SHA3-384"
|
||||
#define NID_RSA_SHA3_384 1118
|
||||
#define OBJ_RSA_SHA3_384 OBJ_sigAlgs,15L
|
||||
|
||||
#define SN_RSA_SHA3_512 "id-rsassa-pkcs1-v1_5-with-sha3-512"
|
||||
#define LN_RSA_SHA3_512 "RSA-SHA3-512"
|
||||
#define NID_RSA_SHA3_512 1119
|
||||
#define OBJ_RSA_SHA3_512 OBJ_sigAlgs,16L
|
||||
|
||||
#define SN_hold_instruction_code "holdInstructionCode"
|
||||
#define LN_hold_instruction_code "Hold Instruction Code"
|
||||
#define NID_hold_instruction_code 430
|
||||
#define OBJ_hold_instruction_code OBJ_id_ce,23L
|
||||
|
||||
#define OBJ_holdInstruction OBJ_X9_57,2L
|
||||
|
||||
#define SN_hold_instruction_none "holdInstructionNone"
|
||||
#define LN_hold_instruction_none "Hold Instruction None"
|
||||
#define NID_hold_instruction_none 431
|
||||
#define OBJ_hold_instruction_none OBJ_holdInstruction,1L
|
||||
|
||||
#define SN_hold_instruction_call_issuer "holdInstructionCallIssuer"
|
||||
#define LN_hold_instruction_call_issuer "Hold Instruction Call Issuer"
|
||||
#define NID_hold_instruction_call_issuer 432
|
||||
#define OBJ_hold_instruction_call_issuer OBJ_holdInstruction,2L
|
||||
|
||||
#define SN_hold_instruction_reject "holdInstructionReject"
|
||||
#define LN_hold_instruction_reject "Hold Instruction Reject"
|
||||
#define NID_hold_instruction_reject 433
|
||||
#define OBJ_hold_instruction_reject OBJ_holdInstruction,3L
|
||||
|
||||
#define SN_data "data"
|
||||
#define NID_data 434
|
||||
#define OBJ_data OBJ_itu_t,9L
|
||||
|
||||
#define SN_pss "pss"
|
||||
#define NID_pss 435
|
||||
#define OBJ_pss OBJ_data,2342L
|
||||
|
||||
#define SN_ucl "ucl"
|
||||
#define NID_ucl 436
|
||||
#define OBJ_ucl OBJ_pss,19200300L
|
||||
|
||||
#define SN_pilot "pilot"
|
||||
#define NID_pilot 437
|
||||
#define OBJ_pilot OBJ_ucl,100L
|
||||
|
||||
#define LN_pilotAttributeType "pilotAttributeType"
|
||||
#define NID_pilotAttributeType 438
|
||||
#define OBJ_pilotAttributeType OBJ_pilot,1L
|
||||
|
||||
#define LN_pilotAttributeSyntax "pilotAttributeSyntax"
|
||||
#define NID_pilotAttributeSyntax 439
|
||||
#define OBJ_pilotAttributeSyntax OBJ_pilot,3L
|
||||
|
||||
#define LN_pilotObjectClass "pilotObjectClass"
|
||||
#define NID_pilotObjectClass 440
|
||||
#define OBJ_pilotObjectClass OBJ_pilot,4L
|
||||
|
||||
#define LN_pilotGroups "pilotGroups"
|
||||
#define NID_pilotGroups 441
|
||||
#define OBJ_pilotGroups OBJ_pilot,10L
|
||||
|
||||
#define LN_iA5StringSyntax "iA5StringSyntax"
|
||||
#define NID_iA5StringSyntax 442
|
||||
#define OBJ_iA5StringSyntax OBJ_pilotAttributeSyntax,4L
|
||||
|
||||
#define LN_caseIgnoreIA5StringSyntax "caseIgnoreIA5StringSyntax"
|
||||
#define NID_caseIgnoreIA5StringSyntax 443
|
||||
#define OBJ_caseIgnoreIA5StringSyntax OBJ_pilotAttributeSyntax,5L
|
||||
|
||||
#define LN_pilotObject "pilotObject"
|
||||
#define NID_pilotObject 444
|
||||
#define OBJ_pilotObject OBJ_pilotObjectClass,3L
|
||||
|
||||
#define LN_pilotPerson "pilotPerson"
|
||||
#define NID_pilotPerson 445
|
||||
#define OBJ_pilotPerson OBJ_pilotObjectClass,4L
|
||||
|
||||
#define SN_account "account"
|
||||
#define NID_account 446
|
||||
#define OBJ_account OBJ_pilotObjectClass,5L
|
||||
|
||||
#define SN_document "document"
|
||||
#define NID_document 447
|
||||
#define OBJ_document OBJ_pilotObjectClass,6L
|
||||
|
||||
#define SN_room "room"
|
||||
#define NID_room 448
|
||||
#define OBJ_room OBJ_pilotObjectClass,7L
|
||||
|
||||
#define LN_documentSeries "documentSeries"
|
||||
#define NID_documentSeries 449
|
||||
#define OBJ_documentSeries OBJ_pilotObjectClass,9L
|
||||
|
||||
#define SN_Domain "domain"
|
||||
#define LN_Domain "Domain"
|
||||
#define NID_Domain 392
|
||||
#define OBJ_Domain OBJ_pilotObjectClass,13L
|
||||
|
||||
#define LN_rFC822localPart "rFC822localPart"
|
||||
#define NID_rFC822localPart 450
|
||||
#define OBJ_rFC822localPart OBJ_pilotObjectClass,14L
|
||||
|
||||
#define LN_dNSDomain "dNSDomain"
|
||||
#define NID_dNSDomain 451
|
||||
#define OBJ_dNSDomain OBJ_pilotObjectClass,15L
|
||||
|
||||
#define LN_domainRelatedObject "domainRelatedObject"
|
||||
#define NID_domainRelatedObject 452
|
||||
#define OBJ_domainRelatedObject OBJ_pilotObjectClass,17L
|
||||
|
||||
#define LN_friendlyCountry "friendlyCountry"
|
||||
#define NID_friendlyCountry 453
|
||||
#define OBJ_friendlyCountry OBJ_pilotObjectClass,18L
|
||||
|
||||
#define LN_simpleSecurityObject "simpleSecurityObject"
|
||||
#define NID_simpleSecurityObject 454
|
||||
#define OBJ_simpleSecurityObject OBJ_pilotObjectClass,19L
|
||||
|
||||
#define LN_pilotOrganization "pilotOrganization"
|
||||
#define NID_pilotOrganization 455
|
||||
#define OBJ_pilotOrganization OBJ_pilotObjectClass,20L
|
||||
|
||||
#define LN_pilotDSA "pilotDSA"
|
||||
#define NID_pilotDSA 456
|
||||
#define OBJ_pilotDSA OBJ_pilotObjectClass,21L
|
||||
|
||||
#define LN_qualityLabelledData "qualityLabelledData"
|
||||
#define NID_qualityLabelledData 457
|
||||
#define OBJ_qualityLabelledData OBJ_pilotObjectClass,22L
|
||||
|
||||
#define SN_userId "UID"
|
||||
#define LN_userId "userId"
|
||||
#define NID_userId 458
|
||||
#define OBJ_userId OBJ_pilotAttributeType,1L
|
||||
|
||||
#define LN_textEncodedORAddress "textEncodedORAddress"
|
||||
#define NID_textEncodedORAddress 459
|
||||
#define OBJ_textEncodedORAddress OBJ_pilotAttributeType,2L
|
||||
|
||||
#define SN_rfc822Mailbox "mail"
|
||||
#define LN_rfc822Mailbox "rfc822Mailbox"
|
||||
#define NID_rfc822Mailbox 460
|
||||
#define OBJ_rfc822Mailbox OBJ_pilotAttributeType,3L
|
||||
|
||||
#define SN_info "info"
|
||||
#define NID_info 461
|
||||
#define OBJ_info OBJ_pilotAttributeType,4L
|
||||
|
||||
#define LN_favouriteDrink "favouriteDrink"
|
||||
#define NID_favouriteDrink 462
|
||||
#define OBJ_favouriteDrink OBJ_pilotAttributeType,5L
|
||||
|
||||
#define LN_roomNumber "roomNumber"
|
||||
#define NID_roomNumber 463
|
||||
#define OBJ_roomNumber OBJ_pilotAttributeType,6L
|
||||
|
||||
#define SN_photo "photo"
|
||||
#define NID_photo 464
|
||||
#define OBJ_photo OBJ_pilotAttributeType,7L
|
||||
|
||||
#define LN_userClass "userClass"
|
||||
#define NID_userClass 465
|
||||
#define OBJ_userClass OBJ_pilotAttributeType,8L
|
||||
|
||||
#define SN_host "host"
|
||||
#define NID_host 466
|
||||
#define OBJ_host OBJ_pilotAttributeType,9L
|
||||
|
||||
#define SN_manager "manager"
|
||||
#define NID_manager 467
|
||||
#define OBJ_manager OBJ_pilotAttributeType,10L
|
||||
|
||||
#define LN_documentIdentifier "documentIdentifier"
|
||||
#define NID_documentIdentifier 468
|
||||
#define OBJ_documentIdentifier OBJ_pilotAttributeType,11L
|
||||
|
||||
#define LN_documentTitle "documentTitle"
|
||||
#define NID_documentTitle 469
|
||||
#define OBJ_documentTitle OBJ_pilotAttributeType,12L
|
||||
|
||||
#define LN_documentVersion "documentVersion"
|
||||
#define NID_documentVersion 470
|
||||
#define OBJ_documentVersion OBJ_pilotAttributeType,13L
|
||||
|
||||
#define LN_documentAuthor "documentAuthor"
|
||||
#define NID_documentAuthor 471
|
||||
#define OBJ_documentAuthor OBJ_pilotAttributeType,14L
|
||||
|
||||
#define LN_documentLocation "documentLocation"
|
||||
#define NID_documentLocation 472
|
||||
#define OBJ_documentLocation OBJ_pilotAttributeType,15L
|
||||
|
||||
#define LN_homeTelephoneNumber "homeTelephoneNumber"
|
||||
#define NID_homeTelephoneNumber 473
|
||||
#define OBJ_homeTelephoneNumber OBJ_pilotAttributeType,20L
|
||||
|
||||
#define SN_secretary "secretary"
|
||||
#define NID_secretary 474
|
||||
#define OBJ_secretary OBJ_pilotAttributeType,21L
|
||||
|
||||
#define LN_otherMailbox "otherMailbox"
|
||||
#define NID_otherMailbox 475
|
||||
#define OBJ_otherMailbox OBJ_pilotAttributeType,22L
|
||||
|
||||
#define LN_lastModifiedTime "lastModifiedTime"
|
||||
#define NID_lastModifiedTime 476
|
||||
#define OBJ_lastModifiedTime OBJ_pilotAttributeType,23L
|
||||
|
||||
#define LN_lastModifiedBy "lastModifiedBy"
|
||||
#define NID_lastModifiedBy 477
|
||||
#define OBJ_lastModifiedBy OBJ_pilotAttributeType,24L
|
||||
|
||||
#define SN_domainComponent "DC"
|
||||
#define LN_domainComponent "domainComponent"
|
||||
#define NID_domainComponent 391
|
||||
#define OBJ_domainComponent OBJ_pilotAttributeType,25L
|
||||
|
||||
#define LN_aRecord "aRecord"
|
||||
#define NID_aRecord 478
|
||||
#define OBJ_aRecord OBJ_pilotAttributeType,26L
|
||||
|
||||
#define LN_pilotAttributeType27 "pilotAttributeType27"
|
||||
#define NID_pilotAttributeType27 479
|
||||
#define OBJ_pilotAttributeType27 OBJ_pilotAttributeType,27L
|
||||
|
||||
#define LN_mXRecord "mXRecord"
|
||||
#define NID_mXRecord 480
|
||||
#define OBJ_mXRecord OBJ_pilotAttributeType,28L
|
||||
|
||||
#define LN_nSRecord "nSRecord"
|
||||
#define NID_nSRecord 481
|
||||
#define OBJ_nSRecord OBJ_pilotAttributeType,29L
|
||||
|
||||
#define LN_sOARecord "sOARecord"
|
||||
#define NID_sOARecord 482
|
||||
#define OBJ_sOARecord OBJ_pilotAttributeType,30L
|
||||
|
||||
#define LN_cNAMERecord "cNAMERecord"
|
||||
#define NID_cNAMERecord 483
|
||||
#define OBJ_cNAMERecord OBJ_pilotAttributeType,31L
|
||||
|
||||
#define LN_associatedDomain "associatedDomain"
|
||||
#define NID_associatedDomain 484
|
||||
#define OBJ_associatedDomain OBJ_pilotAttributeType,37L
|
||||
|
||||
#define LN_associatedName "associatedName"
|
||||
#define NID_associatedName 485
|
||||
#define OBJ_associatedName OBJ_pilotAttributeType,38L
|
||||
|
||||
#define LN_homePostalAddress "homePostalAddress"
|
||||
#define NID_homePostalAddress 486
|
||||
#define OBJ_homePostalAddress OBJ_pilotAttributeType,39L
|
||||
|
||||
#define LN_personalTitle "personalTitle"
|
||||
#define NID_personalTitle 487
|
||||
#define OBJ_personalTitle OBJ_pilotAttributeType,40L
|
||||
|
||||
#define LN_mobileTelephoneNumber "mobileTelephoneNumber"
|
||||
#define NID_mobileTelephoneNumber 488
|
||||
#define OBJ_mobileTelephoneNumber OBJ_pilotAttributeType,41L
|
||||
|
||||
#define LN_pagerTelephoneNumber "pagerTelephoneNumber"
|
||||
#define NID_pagerTelephoneNumber 489
|
||||
#define OBJ_pagerTelephoneNumber OBJ_pilotAttributeType,42L
|
||||
|
||||
#define LN_friendlyCountryName "friendlyCountryName"
|
||||
#define NID_friendlyCountryName 490
|
||||
#define OBJ_friendlyCountryName OBJ_pilotAttributeType,43L
|
||||
|
||||
#define SN_uniqueIdentifier "uid"
|
||||
#define LN_uniqueIdentifier "uniqueIdentifier"
|
||||
#define NID_uniqueIdentifier 102
|
||||
#define OBJ_uniqueIdentifier OBJ_pilotAttributeType,44L
|
||||
|
||||
#define LN_organizationalStatus "organizationalStatus"
|
||||
#define NID_organizationalStatus 491
|
||||
#define OBJ_organizationalStatus OBJ_pilotAttributeType,45L
|
||||
|
||||
#define LN_janetMailbox "janetMailbox"
|
||||
#define NID_janetMailbox 492
|
||||
#define OBJ_janetMailbox OBJ_pilotAttributeType,46L
|
||||
|
||||
#define LN_mailPreferenceOption "mailPreferenceOption"
|
||||
#define NID_mailPreferenceOption 493
|
||||
#define OBJ_mailPreferenceOption OBJ_pilotAttributeType,47L
|
||||
|
||||
#define LN_buildingName "buildingName"
|
||||
#define NID_buildingName 494
|
||||
#define OBJ_buildingName OBJ_pilotAttributeType,48L
|
||||
|
||||
#define LN_dSAQuality "dSAQuality"
|
||||
#define NID_dSAQuality 495
|
||||
#define OBJ_dSAQuality OBJ_pilotAttributeType,49L
|
||||
|
||||
#define LN_singleLevelQuality "singleLevelQuality"
|
||||
#define NID_singleLevelQuality 496
|
||||
#define OBJ_singleLevelQuality OBJ_pilotAttributeType,50L
|
||||
|
||||
#define LN_subtreeMinimumQuality "subtreeMinimumQuality"
|
||||
#define NID_subtreeMinimumQuality 497
|
||||
#define OBJ_subtreeMinimumQuality OBJ_pilotAttributeType,51L
|
||||
|
||||
#define LN_subtreeMaximumQuality "subtreeMaximumQuality"
|
||||
#define NID_subtreeMaximumQuality 498
|
||||
#define OBJ_subtreeMaximumQuality OBJ_pilotAttributeType,52L
|
||||
|
||||
#define LN_personalSignature "personalSignature"
|
||||
#define NID_personalSignature 499
|
||||
#define OBJ_personalSignature OBJ_pilotAttributeType,53L
|
||||
|
||||
#define LN_dITRedirect "dITRedirect"
|
||||
#define NID_dITRedirect 500
|
||||
#define OBJ_dITRedirect OBJ_pilotAttributeType,54L
|
||||
|
||||
#define SN_audio "audio"
|
||||
#define NID_audio 501
|
||||
#define OBJ_audio OBJ_pilotAttributeType,55L
|
||||
|
||||
#define LN_documentPublisher "documentPublisher"
|
||||
#define NID_documentPublisher 502
|
||||
#define OBJ_documentPublisher OBJ_pilotAttributeType,56L
|
||||
|
||||
#define SN_id_set "id-set"
|
||||
#define LN_id_set "Secure Electronic Transactions"
|
||||
#define NID_id_set 512
|
||||
#define OBJ_id_set OBJ_international_organizations,42L
|
||||
|
||||
#define SN_set_ctype "set-ctype"
|
||||
#define LN_set_ctype "content types"
|
||||
#define NID_set_ctype 513
|
||||
#define OBJ_set_ctype OBJ_id_set,0L
|
||||
|
||||
#define SN_set_msgExt "set-msgExt"
|
||||
#define LN_set_msgExt "message extensions"
|
||||
#define NID_set_msgExt 514
|
||||
#define OBJ_set_msgExt OBJ_id_set,1L
|
||||
|
||||
#define SN_set_attr "set-attr"
|
||||
#define NID_set_attr 515
|
||||
#define OBJ_set_attr OBJ_id_set,3L
|
||||
|
||||
#define SN_set_policy "set-policy"
|
||||
#define NID_set_policy 516
|
||||
#define OBJ_set_policy OBJ_id_set,5L
|
||||
|
||||
#define SN_set_certExt "set-certExt"
|
||||
#define LN_set_certExt "certificate extensions"
|
||||
#define NID_set_certExt 517
|
||||
#define OBJ_set_certExt OBJ_id_set,7L
|
||||
|
||||
#define SN_set_brand "set-brand"
|
||||
#define NID_set_brand 518
|
||||
#define OBJ_set_brand OBJ_id_set,8L
|
||||
|
||||
#define SN_setct_PANData "setct-PANData"
|
||||
#define NID_setct_PANData 519
|
||||
#define OBJ_setct_PANData OBJ_set_ctype,0L
|
||||
|
||||
#define SN_setct_PANToken "setct-PANToken"
|
||||
#define NID_setct_PANToken 520
|
||||
#define OBJ_setct_PANToken OBJ_set_ctype,1L
|
||||
|
||||
#define SN_setct_PANOnly "setct-PANOnly"
|
||||
#define NID_setct_PANOnly 521
|
||||
#define OBJ_setct_PANOnly OBJ_set_ctype,2L
|
||||
|
||||
#define SN_setct_OIData "setct-OIData"
|
||||
#define NID_setct_OIData 522
|
||||
#define OBJ_setct_OIData OBJ_set_ctype,3L
|
||||
|
||||
#define SN_setct_PI "setct-PI"
|
||||
#define NID_setct_PI 523
|
||||
#define OBJ_setct_PI OBJ_set_ctype,4L
|
||||
|
||||
#define SN_setct_PIData "setct-PIData"
|
||||
#define NID_setct_PIData 524
|
||||
#define OBJ_setct_PIData OBJ_set_ctype,5L
|
||||
|
||||
#define SN_setct_PIDataUnsigned "setct-PIDataUnsigned"
|
||||
#define NID_setct_PIDataUnsigned 525
|
||||
#define OBJ_setct_PIDataUnsigned OBJ_set_ctype,6L
|
||||
|
||||
#define SN_setct_HODInput "setct-HODInput"
|
||||
#define NID_setct_HODInput 526
|
||||
#define OBJ_setct_HODInput OBJ_set_ctype,7L
|
||||
|
||||
#define SN_setct_AuthResBaggage "setct-AuthResBaggage"
|
||||
#define NID_setct_AuthResBaggage 527
|
||||
#define OBJ_setct_AuthResBaggage OBJ_set_ctype,8L
|
||||
|
||||
#define SN_setct_AuthRevReqBaggage "setct-AuthRevReqBaggage"
|
||||
#define NID_setct_AuthRevReqBaggage 528
|
||||
#define OBJ_setct_AuthRevReqBaggage OBJ_set_ctype,9L
|
||||
|
||||
#define SN_setct_AuthRevResBaggage "setct-AuthRevResBaggage"
|
||||
#define NID_setct_AuthRevResBaggage 529
|
||||
#define OBJ_setct_AuthRevResBaggage OBJ_set_ctype,10L
|
||||
|
||||
#define SN_setct_CapTokenSeq "setct-CapTokenSeq"
|
||||
#define NID_setct_CapTokenSeq 530
|
||||
#define OBJ_setct_CapTokenSeq OBJ_set_ctype,11L
|
||||
|
||||
#define SN_setct_PInitResData "setct-PInitResData"
|
||||
#define NID_setct_PInitResData 531
|
||||
#define OBJ_setct_PInitResData OBJ_set_ctype,12L
|
||||
|
||||
#define SN_setct_PI_TBS "setct-PI-TBS"
|
||||
#define NID_setct_PI_TBS 532
|
||||
#define OBJ_setct_PI_TBS OBJ_set_ctype,13L
|
||||
|
||||
#define SN_setct_PResData "setct-PResData"
|
||||
#define NID_setct_PResData 533
|
||||
#define OBJ_setct_PResData OBJ_set_ctype,14L
|
||||
|
||||
#define SN_setct_AuthReqTBS "setct-AuthReqTBS"
|
||||
#define NID_setct_AuthReqTBS 534
|
||||
#define OBJ_setct_AuthReqTBS OBJ_set_ctype,16L
|
||||
|
||||
#define SN_setct_AuthResTBS "setct-AuthResTBS"
|
||||
#define NID_setct_AuthResTBS 535
|
||||
#define OBJ_setct_AuthResTBS OBJ_set_ctype,17L
|
||||
|
||||
#define SN_setct_AuthResTBSX "setct-AuthResTBSX"
|
||||
#define NID_setct_AuthResTBSX 536
|
||||
#define OBJ_setct_AuthResTBSX OBJ_set_ctype,18L
|
||||
|
||||
#define SN_setct_AuthTokenTBS "setct-AuthTokenTBS"
|
||||
#define NID_setct_AuthTokenTBS 537
|
||||
#define OBJ_setct_AuthTokenTBS OBJ_set_ctype,19L
|
||||
|
||||
#define SN_setct_CapTokenData "setct-CapTokenData"
|
||||
#define NID_setct_CapTokenData 538
|
||||
#define OBJ_setct_CapTokenData OBJ_set_ctype,20L
|
||||
|
||||
#define SN_setct_CapTokenTBS "setct-CapTokenTBS"
|
||||
#define NID_setct_CapTokenTBS 539
|
||||
#define OBJ_setct_CapTokenTBS OBJ_set_ctype,21L
|
||||
|
||||
#define SN_setct_AcqCardCodeMsg "setct-AcqCardCodeMsg"
|
||||
#define NID_setct_AcqCardCodeMsg 540
|
||||
#define OBJ_setct_AcqCardCodeMsg OBJ_set_ctype,22L
|
||||
|
||||
#define SN_setct_AuthRevReqTBS "setct-AuthRevReqTBS"
|
||||
#define NID_setct_AuthRevReqTBS 541
|
||||
#define OBJ_setct_AuthRevReqTBS OBJ_set_ctype,23L
|
||||
|
||||
#define SN_setct_AuthRevResData "setct-AuthRevResData"
|
||||
#define NID_setct_AuthRevResData 542
|
||||
#define OBJ_setct_AuthRevResData OBJ_set_ctype,24L
|
||||
|
||||
#define SN_setct_AuthRevResTBS "setct-AuthRevResTBS"
|
||||
#define NID_setct_AuthRevResTBS 543
|
||||
#define OBJ_setct_AuthRevResTBS OBJ_set_ctype,25L
|
||||
|
||||
#define SN_setct_CapReqTBS "setct-CapReqTBS"
|
||||
#define NID_setct_CapReqTBS 544
|
||||
#define OBJ_setct_CapReqTBS OBJ_set_ctype,26L
|
||||
|
||||
#define SN_setct_CapReqTBSX "setct-CapReqTBSX"
|
||||
#define NID_setct_CapReqTBSX 545
|
||||
#define OBJ_setct_CapReqTBSX OBJ_set_ctype,27L
|
||||
|
||||
#define SN_setct_CapResData "setct-CapResData"
|
||||
#define NID_setct_CapResData 546
|
||||
#define OBJ_setct_CapResData OBJ_set_ctype,28L
|
||||
|
||||
#define SN_setct_CapRevReqTBS "setct-CapRevReqTBS"
|
||||
#define NID_setct_CapRevReqTBS 547
|
||||
#define OBJ_setct_CapRevReqTBS OBJ_set_ctype,29L
|
||||
|
||||
#define SN_setct_CapRevReqTBSX "setct-CapRevReqTBSX"
|
||||
#define NID_setct_CapRevReqTBSX 548
|
||||
#define OBJ_setct_CapRevReqTBSX OBJ_set_ctype,30L
|
||||
|
||||
#define SN_setct_CapRevResData "setct-CapRevResData"
|
||||
#define NID_setct_CapRevResData 549
|
||||
#define OBJ_setct_CapRevResData OBJ_set_ctype,31L
|
||||
|
||||
#define SN_setct_CredReqTBS "setct-CredReqTBS"
|
||||
#define NID_setct_CredReqTBS 550
|
||||
#define OBJ_setct_CredReqTBS OBJ_set_ctype,32L
|
||||
|
||||
#define SN_setct_CredReqTBSX "setct-CredReqTBSX"
|
||||
#define NID_setct_CredReqTBSX 551
|
||||
#define OBJ_setct_CredReqTBSX OBJ_set_ctype,33L
|
||||
|
||||
#define SN_setct_CredResData "setct-CredResData"
|
||||
#define NID_setct_CredResData 552
|
||||
#define OBJ_setct_CredResData OBJ_set_ctype,34L
|
||||
|
||||
#define SN_setct_CredRevReqTBS "setct-CredRevReqTBS"
|
||||
#define NID_setct_CredRevReqTBS 553
|
||||
#define OBJ_setct_CredRevReqTBS OBJ_set_ctype,35L
|
||||
|
||||
#define SN_setct_CredRevReqTBSX "setct-CredRevReqTBSX"
|
||||
#define NID_setct_CredRevReqTBSX 554
|
||||
#define OBJ_setct_CredRevReqTBSX OBJ_set_ctype,36L
|
||||
|
||||
#define SN_setct_CredRevResData "setct-CredRevResData"
|
||||
#define NID_setct_CredRevResData 555
|
||||
#define OBJ_setct_CredRevResData OBJ_set_ctype,37L
|
||||
|
||||
#define SN_setct_PCertReqData "setct-PCertReqData"
|
||||
#define NID_setct_PCertReqData 556
|
||||
#define OBJ_setct_PCertReqData OBJ_set_ctype,38L
|
||||
|
||||
#define SN_setct_PCertResTBS "setct-PCertResTBS"
|
||||
#define NID_setct_PCertResTBS 557
|
||||
#define OBJ_setct_PCertResTBS OBJ_set_ctype,39L
|
||||
|
||||
#define SN_setct_BatchAdminReqData "setct-BatchAdminReqData"
|
||||
#define NID_setct_BatchAdminReqData 558
|
||||
#define OBJ_setct_BatchAdminReqData OBJ_set_ctype,40L
|
||||
|
||||
#define SN_setct_BatchAdminResData "setct-BatchAdminResData"
|
||||
#define NID_setct_BatchAdminResData 559
|
||||
#define OBJ_setct_BatchAdminResData OBJ_set_ctype,41L
|
||||
|
||||
#define SN_setct_CardCInitResTBS "setct-CardCInitResTBS"
|
||||
#define NID_setct_CardCInitResTBS 560
|
||||
#define OBJ_setct_CardCInitResTBS OBJ_set_ctype,42L
|
||||
|
||||
#define SN_setct_MeAqCInitResTBS "setct-MeAqCInitResTBS"
|
||||
#define NID_setct_MeAqCInitResTBS 561
|
||||
#define OBJ_setct_MeAqCInitResTBS OBJ_set_ctype,43L
|
||||
|
||||
#define SN_setct_RegFormResTBS "setct-RegFormResTBS"
|
||||
#define NID_setct_RegFormResTBS 562
|
||||
#define OBJ_setct_RegFormResTBS OBJ_set_ctype,44L
|
||||
|
||||
#define SN_setct_CertReqData "setct-CertReqData"
|
||||
#define NID_setct_CertReqData 563
|
||||
#define OBJ_setct_CertReqData OBJ_set_ctype,45L
|
||||
|
||||
#define SN_setct_CertReqTBS "setct-CertReqTBS"
|
||||
#define NID_setct_CertReqTBS 564
|
||||
#define OBJ_setct_CertReqTBS OBJ_set_ctype,46L
|
||||
|
||||
#define SN_setct_CertResData "setct-CertResData"
|
||||
#define NID_setct_CertResData 565
|
||||
#define OBJ_setct_CertResData OBJ_set_ctype,47L
|
||||
|
||||
#define SN_setct_CertInqReqTBS "setct-CertInqReqTBS"
|
||||
#define NID_setct_CertInqReqTBS 566
|
||||
#define OBJ_setct_CertInqReqTBS OBJ_set_ctype,48L
|
||||
|
||||
#define SN_setct_ErrorTBS "setct-ErrorTBS"
|
||||
#define NID_setct_ErrorTBS 567
|
||||
#define OBJ_setct_ErrorTBS OBJ_set_ctype,49L
|
||||
|
||||
#define SN_setct_PIDualSignedTBE "setct-PIDualSignedTBE"
|
||||
#define NID_setct_PIDualSignedTBE 568
|
||||
#define OBJ_setct_PIDualSignedTBE OBJ_set_ctype,50L
|
||||
|
||||
#define SN_setct_PIUnsignedTBE "setct-PIUnsignedTBE"
|
||||
#define NID_setct_PIUnsignedTBE 569
|
||||
#define OBJ_setct_PIUnsignedTBE OBJ_set_ctype,51L
|
||||
|
||||
#define SN_setct_AuthReqTBE "setct-AuthReqTBE"
|
||||
#define NID_setct_AuthReqTBE 570
|
||||
#define OBJ_setct_AuthReqTBE OBJ_set_ctype,52L
|
||||
|
||||
#define SN_setct_AuthResTBE "setct-AuthResTBE"
|
||||
#define NID_setct_AuthResTBE 571
|
||||
#define OBJ_setct_AuthResTBE OBJ_set_ctype,53L
|
||||
|
||||
#define SN_setct_AuthResTBEX "setct-AuthResTBEX"
|
||||
#define NID_setct_AuthResTBEX 572
|
||||
#define OBJ_setct_AuthResTBEX OBJ_set_ctype,54L
|
||||
|
||||
#define SN_setct_AuthTokenTBE "setct-AuthTokenTBE"
|
||||
#define NID_setct_AuthTokenTBE 573
|
||||
#define OBJ_setct_AuthTokenTBE OBJ_set_ctype,55L
|
||||
|
||||
#define SN_setct_CapTokenTBE "setct-CapTokenTBE"
|
||||
#define NID_setct_CapTokenTBE 574
|
||||
#define OBJ_setct_CapTokenTBE OBJ_set_ctype,56L
|
||||
|
||||
#define SN_setct_CapTokenTBEX "setct-CapTokenTBEX"
|
||||
#define NID_setct_CapTokenTBEX 575
|
||||
#define OBJ_setct_CapTokenTBEX OBJ_set_ctype,57L
|
||||
|
||||
#define SN_setct_AcqCardCodeMsgTBE "setct-AcqCardCodeMsgTBE"
|
||||
#define NID_setct_AcqCardCodeMsgTBE 576
|
||||
#define OBJ_setct_AcqCardCodeMsgTBE OBJ_set_ctype,58L
|
||||
|
||||
#define SN_setct_AuthRevReqTBE "setct-AuthRevReqTBE"
|
||||
#define NID_setct_AuthRevReqTBE 577
|
||||
#define OBJ_setct_AuthRevReqTBE OBJ_set_ctype,59L
|
||||
|
||||
#define SN_setct_AuthRevResTBE "setct-AuthRevResTBE"
|
||||
#define NID_setct_AuthRevResTBE 578
|
||||
#define OBJ_setct_AuthRevResTBE OBJ_set_ctype,60L
|
||||
|
||||
#define SN_setct_AuthRevResTBEB "setct-AuthRevResTBEB"
|
||||
#define NID_setct_AuthRevResTBEB 579
|
||||
#define OBJ_setct_AuthRevResTBEB OBJ_set_ctype,61L
|
||||
|
||||
#define SN_setct_CapReqTBE "setct-CapReqTBE"
|
||||
#define NID_setct_CapReqTBE 580
|
||||
#define OBJ_setct_CapReqTBE OBJ_set_ctype,62L
|
||||
|
||||
#define SN_setct_CapReqTBEX "setct-CapReqTBEX"
|
||||
#define NID_setct_CapReqTBEX 581
|
||||
#define OBJ_setct_CapReqTBEX OBJ_set_ctype,63L
|
||||
|
||||
#define SN_setct_CapResTBE "setct-CapResTBE"
|
||||
#define NID_setct_CapResTBE 582
|
||||
#define OBJ_setct_CapResTBE OBJ_set_ctype,64L
|
||||
|
||||
#define SN_setct_CapRevReqTBE "setct-CapRevReqTBE"
|
||||
#define NID_setct_CapRevReqTBE 583
|
||||
#define OBJ_setct_CapRevReqTBE OBJ_set_ctype,65L
|
||||
|
||||
#define SN_setct_CapRevReqTBEX "setct-CapRevReqTBEX"
|
||||
#define NID_setct_CapRevReqTBEX 584
|
||||
#define OBJ_setct_CapRevReqTBEX OBJ_set_ctype,66L
|
||||
|
||||
#define SN_setct_CapRevResTBE "setct-CapRevResTBE"
|
||||
#define NID_setct_CapRevResTBE 585
|
||||
#define OBJ_setct_CapRevResTBE OBJ_set_ctype,67L
|
||||
|
||||
#define SN_setct_CredReqTBE "setct-CredReqTBE"
|
||||
#define NID_setct_CredReqTBE 586
|
||||
#define OBJ_setct_CredReqTBE OBJ_set_ctype,68L
|
||||
|
||||
#define SN_setct_CredReqTBEX "setct-CredReqTBEX"
|
||||
#define NID_setct_CredReqTBEX 587
|
||||
#define OBJ_setct_CredReqTBEX OBJ_set_ctype,69L
|
||||
|
||||
#define SN_setct_CredResTBE "setct-CredResTBE"
|
||||
#define NID_setct_CredResTBE 588
|
||||
#define OBJ_setct_CredResTBE OBJ_set_ctype,70L
|
||||
|
||||
#define SN_setct_CredRevReqTBE "setct-CredRevReqTBE"
|
||||
#define NID_setct_CredRevReqTBE 589
|
||||
#define OBJ_setct_CredRevReqTBE OBJ_set_ctype,71L
|
||||
|
||||
#define SN_setct_CredRevReqTBEX "setct-CredRevReqTBEX"
|
||||
#define NID_setct_CredRevReqTBEX 590
|
||||
#define OBJ_setct_CredRevReqTBEX OBJ_set_ctype,72L
|
||||
|
||||
#define SN_setct_CredRevResTBE "setct-CredRevResTBE"
|
||||
#define NID_setct_CredRevResTBE 591
|
||||
#define OBJ_setct_CredRevResTBE OBJ_set_ctype,73L
|
||||
|
||||
#define SN_setct_BatchAdminReqTBE "setct-BatchAdminReqTBE"
|
||||
#define NID_setct_BatchAdminReqTBE 592
|
||||
#define OBJ_setct_BatchAdminReqTBE OBJ_set_ctype,74L
|
||||
|
||||
#define SN_setct_BatchAdminResTBE "setct-BatchAdminResTBE"
|
||||
#define NID_setct_BatchAdminResTBE 593
|
||||
#define OBJ_setct_BatchAdminResTBE OBJ_set_ctype,75L
|
||||
|
||||
#define SN_setct_RegFormReqTBE "setct-RegFormReqTBE"
|
||||
#define NID_setct_RegFormReqTBE 594
|
||||
#define OBJ_setct_RegFormReqTBE OBJ_set_ctype,76L
|
||||
|
||||
#define SN_setct_CertReqTBE "setct-CertReqTBE"
|
||||
#define NID_setct_CertReqTBE 595
|
||||
#define OBJ_setct_CertReqTBE OBJ_set_ctype,77L
|
||||
|
||||
#define SN_setct_CertReqTBEX "setct-CertReqTBEX"
|
||||
#define NID_setct_CertReqTBEX 596
|
||||
#define OBJ_setct_CertReqTBEX OBJ_set_ctype,78L
|
||||
|
||||
#define SN_setct_CertResTBE "setct-CertResTBE"
|
||||
#define NID_setct_CertResTBE 597
|
||||
#define OBJ_setct_CertResTBE OBJ_set_ctype,79L
|
||||
|
||||
#define SN_setct_CRLNotificationTBS "setct-CRLNotificationTBS"
|
||||
#define NID_setct_CRLNotificationTBS 598
|
||||
#define OBJ_setct_CRLNotificationTBS OBJ_set_ctype,80L
|
||||
|
||||
#define SN_setct_CRLNotificationResTBS "setct-CRLNotificationResTBS"
|
||||
#define NID_setct_CRLNotificationResTBS 599
|
||||
#define OBJ_setct_CRLNotificationResTBS OBJ_set_ctype,81L
|
||||
|
||||
#define SN_setct_BCIDistributionTBS "setct-BCIDistributionTBS"
|
||||
#define NID_setct_BCIDistributionTBS 600
|
||||
#define OBJ_setct_BCIDistributionTBS OBJ_set_ctype,82L
|
||||
|
||||
#define SN_setext_genCrypt "setext-genCrypt"
|
||||
#define LN_setext_genCrypt "generic cryptogram"
|
||||
#define NID_setext_genCrypt 601
|
||||
#define OBJ_setext_genCrypt OBJ_set_msgExt,1L
|
||||
|
||||
#define SN_setext_miAuth "setext-miAuth"
|
||||
#define LN_setext_miAuth "merchant initiated auth"
|
||||
#define NID_setext_miAuth 602
|
||||
#define OBJ_setext_miAuth OBJ_set_msgExt,3L
|
||||
|
||||
#define SN_setext_pinSecure "setext-pinSecure"
|
||||
#define NID_setext_pinSecure 603
|
||||
#define OBJ_setext_pinSecure OBJ_set_msgExt,4L
|
||||
|
||||
#define SN_setext_pinAny "setext-pinAny"
|
||||
#define NID_setext_pinAny 604
|
||||
#define OBJ_setext_pinAny OBJ_set_msgExt,5L
|
||||
|
||||
#define SN_setext_track2 "setext-track2"
|
||||
#define NID_setext_track2 605
|
||||
#define OBJ_setext_track2 OBJ_set_msgExt,7L
|
||||
|
||||
#define SN_setext_cv "setext-cv"
|
||||
#define LN_setext_cv "additional verification"
|
||||
#define NID_setext_cv 606
|
||||
#define OBJ_setext_cv OBJ_set_msgExt,8L
|
||||
|
||||
#define SN_set_policy_root "set-policy-root"
|
||||
#define NID_set_policy_root 607
|
||||
#define OBJ_set_policy_root OBJ_set_policy,0L
|
||||
|
||||
#define SN_setCext_hashedRoot "setCext-hashedRoot"
|
||||
#define NID_setCext_hashedRoot 608
|
||||
#define OBJ_setCext_hashedRoot OBJ_set_certExt,0L
|
||||
|
||||
#define SN_setCext_certType "setCext-certType"
|
||||
#define NID_setCext_certType 609
|
||||
#define OBJ_setCext_certType OBJ_set_certExt,1L
|
||||
|
||||
#define SN_setCext_merchData "setCext-merchData"
|
||||
#define NID_setCext_merchData 610
|
||||
#define OBJ_setCext_merchData OBJ_set_certExt,2L
|
||||
|
||||
#define SN_setCext_cCertRequired "setCext-cCertRequired"
|
||||
#define NID_setCext_cCertRequired 611
|
||||
#define OBJ_setCext_cCertRequired OBJ_set_certExt,3L
|
||||
|
||||
#define SN_setCext_tunneling "setCext-tunneling"
|
||||
#define NID_setCext_tunneling 612
|
||||
#define OBJ_setCext_tunneling OBJ_set_certExt,4L
|
||||
|
||||
#define SN_setCext_setExt "setCext-setExt"
|
||||
#define NID_setCext_setExt 613
|
||||
#define OBJ_setCext_setExt OBJ_set_certExt,5L
|
||||
|
||||
#define SN_setCext_setQualf "setCext-setQualf"
|
||||
#define NID_setCext_setQualf 614
|
||||
#define OBJ_setCext_setQualf OBJ_set_certExt,6L
|
||||
|
||||
#define SN_setCext_PGWYcapabilities "setCext-PGWYcapabilities"
|
||||
#define NID_setCext_PGWYcapabilities 615
|
||||
#define OBJ_setCext_PGWYcapabilities OBJ_set_certExt,7L
|
||||
|
||||
#define SN_setCext_TokenIdentifier "setCext-TokenIdentifier"
|
||||
#define NID_setCext_TokenIdentifier 616
|
||||
#define OBJ_setCext_TokenIdentifier OBJ_set_certExt,8L
|
||||
|
||||
#define SN_setCext_Track2Data "setCext-Track2Data"
|
||||
#define NID_setCext_Track2Data 617
|
||||
#define OBJ_setCext_Track2Data OBJ_set_certExt,9L
|
||||
|
||||
#define SN_setCext_TokenType "setCext-TokenType"
|
||||
#define NID_setCext_TokenType 618
|
||||
#define OBJ_setCext_TokenType OBJ_set_certExt,10L
|
||||
|
||||
#define SN_setCext_IssuerCapabilities "setCext-IssuerCapabilities"
|
||||
#define NID_setCext_IssuerCapabilities 619
|
||||
#define OBJ_setCext_IssuerCapabilities OBJ_set_certExt,11L
|
||||
|
||||
#define SN_setAttr_Cert "setAttr-Cert"
|
||||
#define NID_setAttr_Cert 620
|
||||
#define OBJ_setAttr_Cert OBJ_set_attr,0L
|
||||
|
||||
#define SN_setAttr_PGWYcap "setAttr-PGWYcap"
|
||||
#define LN_setAttr_PGWYcap "payment gateway capabilities"
|
||||
#define NID_setAttr_PGWYcap 621
|
||||
#define OBJ_setAttr_PGWYcap OBJ_set_attr,1L
|
||||
|
||||
#define SN_setAttr_TokenType "setAttr-TokenType"
|
||||
#define NID_setAttr_TokenType 622
|
||||
#define OBJ_setAttr_TokenType OBJ_set_attr,2L
|
||||
|
||||
#define SN_setAttr_IssCap "setAttr-IssCap"
|
||||
#define LN_setAttr_IssCap "issuer capabilities"
|
||||
#define NID_setAttr_IssCap 623
|
||||
#define OBJ_setAttr_IssCap OBJ_set_attr,3L
|
||||
|
||||
#define SN_set_rootKeyThumb "set-rootKeyThumb"
|
||||
#define NID_set_rootKeyThumb 624
|
||||
#define OBJ_set_rootKeyThumb OBJ_setAttr_Cert,0L
|
||||
|
||||
#define SN_set_addPolicy "set-addPolicy"
|
||||
#define NID_set_addPolicy 625
|
||||
#define OBJ_set_addPolicy OBJ_setAttr_Cert,1L
|
||||
|
||||
#define SN_setAttr_Token_EMV "setAttr-Token-EMV"
|
||||
#define NID_setAttr_Token_EMV 626
|
||||
#define OBJ_setAttr_Token_EMV OBJ_setAttr_TokenType,1L
|
||||
|
||||
#define SN_setAttr_Token_B0Prime "setAttr-Token-B0Prime"
|
||||
#define NID_setAttr_Token_B0Prime 627
|
||||
#define OBJ_setAttr_Token_B0Prime OBJ_setAttr_TokenType,2L
|
||||
|
||||
#define SN_setAttr_IssCap_CVM "setAttr-IssCap-CVM"
|
||||
#define NID_setAttr_IssCap_CVM 628
|
||||
#define OBJ_setAttr_IssCap_CVM OBJ_setAttr_IssCap,3L
|
||||
|
||||
#define SN_setAttr_IssCap_T2 "setAttr-IssCap-T2"
|
||||
#define NID_setAttr_IssCap_T2 629
|
||||
#define OBJ_setAttr_IssCap_T2 OBJ_setAttr_IssCap,4L
|
||||
|
||||
#define SN_setAttr_IssCap_Sig "setAttr-IssCap-Sig"
|
||||
#define NID_setAttr_IssCap_Sig 630
|
||||
#define OBJ_setAttr_IssCap_Sig OBJ_setAttr_IssCap,5L
|
||||
|
||||
#define SN_setAttr_GenCryptgrm "setAttr-GenCryptgrm"
|
||||
#define LN_setAttr_GenCryptgrm "generate cryptogram"
|
||||
#define NID_setAttr_GenCryptgrm 631
|
||||
#define OBJ_setAttr_GenCryptgrm OBJ_setAttr_IssCap_CVM,1L
|
||||
|
||||
#define SN_setAttr_T2Enc "setAttr-T2Enc"
|
||||
#define LN_setAttr_T2Enc "encrypted track 2"
|
||||
#define NID_setAttr_T2Enc 632
|
||||
#define OBJ_setAttr_T2Enc OBJ_setAttr_IssCap_T2,1L
|
||||
|
||||
#define SN_setAttr_T2cleartxt "setAttr-T2cleartxt"
|
||||
#define LN_setAttr_T2cleartxt "cleartext track 2"
|
||||
#define NID_setAttr_T2cleartxt 633
|
||||
#define OBJ_setAttr_T2cleartxt OBJ_setAttr_IssCap_T2,2L
|
||||
|
||||
#define SN_setAttr_TokICCsig "setAttr-TokICCsig"
|
||||
#define LN_setAttr_TokICCsig "ICC or token signature"
|
||||
#define NID_setAttr_TokICCsig 634
|
||||
#define OBJ_setAttr_TokICCsig OBJ_setAttr_IssCap_Sig,1L
|
||||
|
||||
#define SN_setAttr_SecDevSig "setAttr-SecDevSig"
|
||||
#define LN_setAttr_SecDevSig "secure device signature"
|
||||
#define NID_setAttr_SecDevSig 635
|
||||
#define OBJ_setAttr_SecDevSig OBJ_setAttr_IssCap_Sig,2L
|
||||
|
||||
#define SN_set_brand_IATA_ATA "set-brand-IATA-ATA"
|
||||
#define NID_set_brand_IATA_ATA 636
|
||||
#define OBJ_set_brand_IATA_ATA OBJ_set_brand,1L
|
||||
|
||||
#define SN_set_brand_Diners "set-brand-Diners"
|
||||
#define NID_set_brand_Diners 637
|
||||
#define OBJ_set_brand_Diners OBJ_set_brand,30L
|
||||
|
||||
#define SN_set_brand_AmericanExpress "set-brand-AmericanExpress"
|
||||
#define NID_set_brand_AmericanExpress 638
|
||||
#define OBJ_set_brand_AmericanExpress OBJ_set_brand,34L
|
||||
|
||||
#define SN_set_brand_JCB "set-brand-JCB"
|
||||
#define NID_set_brand_JCB 639
|
||||
#define OBJ_set_brand_JCB OBJ_set_brand,35L
|
||||
|
||||
#define SN_set_brand_Visa "set-brand-Visa"
|
||||
#define NID_set_brand_Visa 640
|
||||
#define OBJ_set_brand_Visa OBJ_set_brand,4L
|
||||
|
||||
#define SN_set_brand_MasterCard "set-brand-MasterCard"
|
||||
#define NID_set_brand_MasterCard 641
|
||||
#define OBJ_set_brand_MasterCard OBJ_set_brand,5L
|
||||
|
||||
#define SN_set_brand_Novus "set-brand-Novus"
|
||||
#define NID_set_brand_Novus 642
|
||||
#define OBJ_set_brand_Novus OBJ_set_brand,6011L
|
||||
|
||||
#define SN_des_cdmf "DES-CDMF"
|
||||
#define LN_des_cdmf "des-cdmf"
|
||||
#define NID_des_cdmf 643
|
||||
#define OBJ_des_cdmf OBJ_rsadsi,3L,10L
|
||||
|
||||
#define SN_rsaOAEPEncryptionSET "rsaOAEPEncryptionSET"
|
||||
#define NID_rsaOAEPEncryptionSET 644
|
||||
#define OBJ_rsaOAEPEncryptionSET OBJ_rsadsi,1L,1L,6L
|
||||
|
||||
#define SN_ipsec3 "Oakley-EC2N-3"
|
||||
#define LN_ipsec3 "ipsec3"
|
||||
#define NID_ipsec3 749
|
||||
|
||||
#define SN_ipsec4 "Oakley-EC2N-4"
|
||||
#define LN_ipsec4 "ipsec4"
|
||||
#define NID_ipsec4 750
|
||||
|
||||
#define SN_whirlpool "whirlpool"
|
||||
#define NID_whirlpool 804
|
||||
#define OBJ_whirlpool OBJ_iso,0L,10118L,3L,0L,55L
|
||||
|
||||
#define SN_cryptopro "cryptopro"
|
||||
#define NID_cryptopro 805
|
||||
#define OBJ_cryptopro OBJ_member_body,643L,2L,2L
|
||||
|
||||
#define SN_cryptocom "cryptocom"
|
||||
#define NID_cryptocom 806
|
||||
#define OBJ_cryptocom OBJ_member_body,643L,2L,9L
|
||||
|
||||
#define SN_id_tc26 "id-tc26"
|
||||
#define NID_id_tc26 974
|
||||
#define OBJ_id_tc26 OBJ_member_body,643L,7L,1L
|
||||
|
||||
#define SN_id_GostR3411_94_with_GostR3410_2001 "id-GostR3411-94-with-GostR3410-2001"
|
||||
#define LN_id_GostR3411_94_with_GostR3410_2001 "GOST R 34.11-94 with GOST R 34.10-2001"
|
||||
#define NID_id_GostR3411_94_with_GostR3410_2001 807
|
||||
#define OBJ_id_GostR3411_94_with_GostR3410_2001 OBJ_cryptopro,3L
|
||||
|
||||
#define SN_id_GostR3411_94_with_GostR3410_94 "id-GostR3411-94-with-GostR3410-94"
|
||||
#define LN_id_GostR3411_94_with_GostR3410_94 "GOST R 34.11-94 with GOST R 34.10-94"
|
||||
#define NID_id_GostR3411_94_with_GostR3410_94 808
|
||||
#define OBJ_id_GostR3411_94_with_GostR3410_94 OBJ_cryptopro,4L
|
||||
|
||||
#define SN_id_GostR3411_94 "md_gost94"
|
||||
#define LN_id_GostR3411_94 "GOST R 34.11-94"
|
||||
#define NID_id_GostR3411_94 809
|
||||
#define OBJ_id_GostR3411_94 OBJ_cryptopro,9L
|
||||
|
||||
#define SN_id_HMACGostR3411_94 "id-HMACGostR3411-94"
|
||||
#define LN_id_HMACGostR3411_94 "HMAC GOST 34.11-94"
|
||||
#define NID_id_HMACGostR3411_94 810
|
||||
#define OBJ_id_HMACGostR3411_94 OBJ_cryptopro,10L
|
||||
|
||||
#define SN_id_GostR3410_2001 "gost2001"
|
||||
#define LN_id_GostR3410_2001 "GOST R 34.10-2001"
|
||||
#define NID_id_GostR3410_2001 811
|
||||
#define OBJ_id_GostR3410_2001 OBJ_cryptopro,19L
|
||||
|
||||
#define SN_id_GostR3410_94 "gost94"
|
||||
#define LN_id_GostR3410_94 "GOST R 34.10-94"
|
||||
#define NID_id_GostR3410_94 812
|
||||
#define OBJ_id_GostR3410_94 OBJ_cryptopro,20L
|
||||
|
||||
#define SN_id_Gost28147_89 "gost89"
|
||||
#define LN_id_Gost28147_89 "GOST 28147-89"
|
||||
#define NID_id_Gost28147_89 813
|
||||
#define OBJ_id_Gost28147_89 OBJ_cryptopro,21L
|
||||
|
||||
#define SN_gost89_cnt "gost89-cnt"
|
||||
#define NID_gost89_cnt 814
|
||||
|
||||
#define SN_gost89_cnt_12 "gost89-cnt-12"
|
||||
#define NID_gost89_cnt_12 975
|
||||
|
||||
#define SN_gost89_cbc "gost89-cbc"
|
||||
#define NID_gost89_cbc 1009
|
||||
|
||||
#define SN_gost89_ecb "gost89-ecb"
|
||||
#define NID_gost89_ecb 1010
|
||||
|
||||
#define SN_gost89_ctr "gost89-ctr"
|
||||
#define NID_gost89_ctr 1011
|
||||
|
||||
#define SN_id_Gost28147_89_MAC "gost-mac"
|
||||
#define LN_id_Gost28147_89_MAC "GOST 28147-89 MAC"
|
||||
#define NID_id_Gost28147_89_MAC 815
|
||||
#define OBJ_id_Gost28147_89_MAC OBJ_cryptopro,22L
|
||||
|
||||
#define SN_gost_mac_12 "gost-mac-12"
|
||||
#define NID_gost_mac_12 976
|
||||
|
||||
#define SN_id_GostR3411_94_prf "prf-gostr3411-94"
|
||||
#define LN_id_GostR3411_94_prf "GOST R 34.11-94 PRF"
|
||||
#define NID_id_GostR3411_94_prf 816
|
||||
#define OBJ_id_GostR3411_94_prf OBJ_cryptopro,23L
|
||||
|
||||
#define SN_id_GostR3410_2001DH "id-GostR3410-2001DH"
|
||||
#define LN_id_GostR3410_2001DH "GOST R 34.10-2001 DH"
|
||||
#define NID_id_GostR3410_2001DH 817
|
||||
#define OBJ_id_GostR3410_2001DH OBJ_cryptopro,98L
|
||||
|
||||
#define SN_id_GostR3410_94DH "id-GostR3410-94DH"
|
||||
#define LN_id_GostR3410_94DH "GOST R 34.10-94 DH"
|
||||
#define NID_id_GostR3410_94DH 818
|
||||
#define OBJ_id_GostR3410_94DH OBJ_cryptopro,99L
|
||||
|
||||
#define SN_id_Gost28147_89_CryptoPro_KeyMeshing "id-Gost28147-89-CryptoPro-KeyMeshing"
|
||||
#define NID_id_Gost28147_89_CryptoPro_KeyMeshing 819
|
||||
#define OBJ_id_Gost28147_89_CryptoPro_KeyMeshing OBJ_cryptopro,14L,1L
|
||||
|
||||
#define SN_id_Gost28147_89_None_KeyMeshing "id-Gost28147-89-None-KeyMeshing"
|
||||
#define NID_id_Gost28147_89_None_KeyMeshing 820
|
||||
#define OBJ_id_Gost28147_89_None_KeyMeshing OBJ_cryptopro,14L,0L
|
||||
|
||||
#define SN_id_GostR3411_94_TestParamSet "id-GostR3411-94-TestParamSet"
|
||||
#define NID_id_GostR3411_94_TestParamSet 821
|
||||
#define OBJ_id_GostR3411_94_TestParamSet OBJ_cryptopro,30L,0L
|
||||
|
||||
#define SN_id_GostR3411_94_CryptoProParamSet "id-GostR3411-94-CryptoProParamSet"
|
||||
#define NID_id_GostR3411_94_CryptoProParamSet 822
|
||||
#define OBJ_id_GostR3411_94_CryptoProParamSet OBJ_cryptopro,30L,1L
|
||||
|
||||
#define SN_id_Gost28147_89_TestParamSet "id-Gost28147-89-TestParamSet"
|
||||
#define NID_id_Gost28147_89_TestParamSet 823
|
||||
#define OBJ_id_Gost28147_89_TestParamSet OBJ_cryptopro,31L,0L
|
||||
|
||||
#define SN_id_Gost28147_89_CryptoPro_A_ParamSet "id-Gost28147-89-CryptoPro-A-ParamSet"
|
||||
#define NID_id_Gost28147_89_CryptoPro_A_ParamSet 824
|
||||
#define OBJ_id_Gost28147_89_CryptoPro_A_ParamSet OBJ_cryptopro,31L,1L
|
||||
|
||||
#define SN_id_Gost28147_89_CryptoPro_B_ParamSet "id-Gost28147-89-CryptoPro-B-ParamSet"
|
||||
#define NID_id_Gost28147_89_CryptoPro_B_ParamSet 825
|
||||
#define OBJ_id_Gost28147_89_CryptoPro_B_ParamSet OBJ_cryptopro,31L,2L
|
||||
|
||||
#define SN_id_Gost28147_89_CryptoPro_C_ParamSet "id-Gost28147-89-CryptoPro-C-ParamSet"
|
||||
#define NID_id_Gost28147_89_CryptoPro_C_ParamSet 826
|
||||
#define OBJ_id_Gost28147_89_CryptoPro_C_ParamSet OBJ_cryptopro,31L,3L
|
||||
|
||||
#define SN_id_Gost28147_89_CryptoPro_D_ParamSet "id-Gost28147-89-CryptoPro-D-ParamSet"
|
||||
#define NID_id_Gost28147_89_CryptoPro_D_ParamSet 827
|
||||
#define OBJ_id_Gost28147_89_CryptoPro_D_ParamSet OBJ_cryptopro,31L,4L
|
||||
|
||||
#define SN_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet "id-Gost28147-89-CryptoPro-Oscar-1-1-ParamSet"
|
||||
#define NID_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet 828
|
||||
#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet OBJ_cryptopro,31L,5L
|
||||
|
||||
#define SN_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet "id-Gost28147-89-CryptoPro-Oscar-1-0-ParamSet"
|
||||
#define NID_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet 829
|
||||
#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet OBJ_cryptopro,31L,6L
|
||||
|
||||
#define SN_id_Gost28147_89_CryptoPro_RIC_1_ParamSet "id-Gost28147-89-CryptoPro-RIC-1-ParamSet"
|
||||
#define NID_id_Gost28147_89_CryptoPro_RIC_1_ParamSet 830
|
||||
#define OBJ_id_Gost28147_89_CryptoPro_RIC_1_ParamSet OBJ_cryptopro,31L,7L
|
||||
|
||||
#define SN_id_GostR3410_94_TestParamSet "id-GostR3410-94-TestParamSet"
|
||||
#define NID_id_GostR3410_94_TestParamSet 831
|
||||
#define OBJ_id_GostR3410_94_TestParamSet OBJ_cryptopro,32L,0L
|
||||
|
||||
#define SN_id_GostR3410_94_CryptoPro_A_ParamSet "id-GostR3410-94-CryptoPro-A-ParamSet"
|
||||
#define NID_id_GostR3410_94_CryptoPro_A_ParamSet 832
|
||||
#define OBJ_id_GostR3410_94_CryptoPro_A_ParamSet OBJ_cryptopro,32L,2L
|
||||
|
||||
#define SN_id_GostR3410_94_CryptoPro_B_ParamSet "id-GostR3410-94-CryptoPro-B-ParamSet"
|
||||
#define NID_id_GostR3410_94_CryptoPro_B_ParamSet 833
|
||||
#define OBJ_id_GostR3410_94_CryptoPro_B_ParamSet OBJ_cryptopro,32L,3L
|
||||
|
||||
#define SN_id_GostR3410_94_CryptoPro_C_ParamSet "id-GostR3410-94-CryptoPro-C-ParamSet"
|
||||
#define NID_id_GostR3410_94_CryptoPro_C_ParamSet 834
|
||||
#define OBJ_id_GostR3410_94_CryptoPro_C_ParamSet OBJ_cryptopro,32L,4L
|
||||
|
||||
#define SN_id_GostR3410_94_CryptoPro_D_ParamSet "id-GostR3410-94-CryptoPro-D-ParamSet"
|
||||
#define NID_id_GostR3410_94_CryptoPro_D_ParamSet 835
|
||||
#define OBJ_id_GostR3410_94_CryptoPro_D_ParamSet OBJ_cryptopro,32L,5L
|
||||
|
||||
#define SN_id_GostR3410_94_CryptoPro_XchA_ParamSet "id-GostR3410-94-CryptoPro-XchA-ParamSet"
|
||||
#define NID_id_GostR3410_94_CryptoPro_XchA_ParamSet 836
|
||||
#define OBJ_id_GostR3410_94_CryptoPro_XchA_ParamSet OBJ_cryptopro,33L,1L
|
||||
|
||||
#define SN_id_GostR3410_94_CryptoPro_XchB_ParamSet "id-GostR3410-94-CryptoPro-XchB-ParamSet"
|
||||
#define NID_id_GostR3410_94_CryptoPro_XchB_ParamSet 837
|
||||
#define OBJ_id_GostR3410_94_CryptoPro_XchB_ParamSet OBJ_cryptopro,33L,2L
|
||||
|
||||
#define SN_id_GostR3410_94_CryptoPro_XchC_ParamSet "id-GostR3410-94-CryptoPro-XchC-ParamSet"
|
||||
#define NID_id_GostR3410_94_CryptoPro_XchC_ParamSet 838
|
||||
#define OBJ_id_GostR3410_94_CryptoPro_XchC_ParamSet OBJ_cryptopro,33L,3L
|
||||
|
||||
#define SN_id_GostR3410_2001_TestParamSet "id-GostR3410-2001-TestParamSet"
|
||||
#define NID_id_GostR3410_2001_TestParamSet 839
|
||||
#define OBJ_id_GostR3410_2001_TestParamSet OBJ_cryptopro,35L,0L
|
||||
|
||||
#define SN_id_GostR3410_2001_CryptoPro_A_ParamSet "id-GostR3410-2001-CryptoPro-A-ParamSet"
|
||||
#define NID_id_GostR3410_2001_CryptoPro_A_ParamSet 840
|
||||
#define OBJ_id_GostR3410_2001_CryptoPro_A_ParamSet OBJ_cryptopro,35L,1L
|
||||
|
||||
#define SN_id_GostR3410_2001_CryptoPro_B_ParamSet "id-GostR3410-2001-CryptoPro-B-ParamSet"
|
||||
#define NID_id_GostR3410_2001_CryptoPro_B_ParamSet 841
|
||||
#define OBJ_id_GostR3410_2001_CryptoPro_B_ParamSet OBJ_cryptopro,35L,2L
|
||||
|
||||
#define SN_id_GostR3410_2001_CryptoPro_C_ParamSet "id-GostR3410-2001-CryptoPro-C-ParamSet"
|
||||
#define NID_id_GostR3410_2001_CryptoPro_C_ParamSet 842
|
||||
#define OBJ_id_GostR3410_2001_CryptoPro_C_ParamSet OBJ_cryptopro,35L,3L
|
||||
|
||||
#define SN_id_GostR3410_2001_CryptoPro_XchA_ParamSet "id-GostR3410-2001-CryptoPro-XchA-ParamSet"
|
||||
#define NID_id_GostR3410_2001_CryptoPro_XchA_ParamSet 843
|
||||
#define OBJ_id_GostR3410_2001_CryptoPro_XchA_ParamSet OBJ_cryptopro,36L,0L
|
||||
|
||||
#define SN_id_GostR3410_2001_CryptoPro_XchB_ParamSet "id-GostR3410-2001-CryptoPro-XchB-ParamSet"
|
||||
#define NID_id_GostR3410_2001_CryptoPro_XchB_ParamSet 844
|
||||
#define OBJ_id_GostR3410_2001_CryptoPro_XchB_ParamSet OBJ_cryptopro,36L,1L
|
||||
|
||||
#define SN_id_GostR3410_94_a "id-GostR3410-94-a"
|
||||
#define NID_id_GostR3410_94_a 845
|
||||
#define OBJ_id_GostR3410_94_a OBJ_id_GostR3410_94,1L
|
||||
|
||||
#define SN_id_GostR3410_94_aBis "id-GostR3410-94-aBis"
|
||||
#define NID_id_GostR3410_94_aBis 846
|
||||
#define OBJ_id_GostR3410_94_aBis OBJ_id_GostR3410_94,2L
|
||||
|
||||
#define SN_id_GostR3410_94_b "id-GostR3410-94-b"
|
||||
#define NID_id_GostR3410_94_b 847
|
||||
#define OBJ_id_GostR3410_94_b OBJ_id_GostR3410_94,3L
|
||||
|
||||
#define SN_id_GostR3410_94_bBis "id-GostR3410-94-bBis"
|
||||
#define NID_id_GostR3410_94_bBis 848
|
||||
#define OBJ_id_GostR3410_94_bBis OBJ_id_GostR3410_94,4L
|
||||
|
||||
#define SN_id_Gost28147_89_cc "id-Gost28147-89-cc"
|
||||
#define LN_id_Gost28147_89_cc "GOST 28147-89 Cryptocom ParamSet"
|
||||
#define NID_id_Gost28147_89_cc 849
|
||||
#define OBJ_id_Gost28147_89_cc OBJ_cryptocom,1L,6L,1L
|
||||
|
||||
#define SN_id_GostR3410_94_cc "gost94cc"
|
||||
#define LN_id_GostR3410_94_cc "GOST 34.10-94 Cryptocom"
|
||||
#define NID_id_GostR3410_94_cc 850
|
||||
#define OBJ_id_GostR3410_94_cc OBJ_cryptocom,1L,5L,3L
|
||||
|
||||
#define SN_id_GostR3410_2001_cc "gost2001cc"
|
||||
#define LN_id_GostR3410_2001_cc "GOST 34.10-2001 Cryptocom"
|
||||
#define NID_id_GostR3410_2001_cc 851
|
||||
#define OBJ_id_GostR3410_2001_cc OBJ_cryptocom,1L,5L,4L
|
||||
|
||||
#define SN_id_GostR3411_94_with_GostR3410_94_cc "id-GostR3411-94-with-GostR3410-94-cc"
|
||||
#define LN_id_GostR3411_94_with_GostR3410_94_cc "GOST R 34.11-94 with GOST R 34.10-94 Cryptocom"
|
||||
#define NID_id_GostR3411_94_with_GostR3410_94_cc 852
|
||||
#define OBJ_id_GostR3411_94_with_GostR3410_94_cc OBJ_cryptocom,1L,3L,3L
|
||||
|
||||
#define SN_id_GostR3411_94_with_GostR3410_2001_cc "id-GostR3411-94-with-GostR3410-2001-cc"
|
||||
#define LN_id_GostR3411_94_with_GostR3410_2001_cc "GOST R 34.11-94 with GOST R 34.10-2001 Cryptocom"
|
||||
#define NID_id_GostR3411_94_with_GostR3410_2001_cc 853
|
||||
#define OBJ_id_GostR3411_94_with_GostR3410_2001_cc OBJ_cryptocom,1L,3L,4L
|
||||
|
||||
#define SN_id_GostR3410_2001_ParamSet_cc "id-GostR3410-2001-ParamSet-cc"
|
||||
#define LN_id_GostR3410_2001_ParamSet_cc "GOST R 3410-2001 Parameter Set Cryptocom"
|
||||
#define NID_id_GostR3410_2001_ParamSet_cc 854
|
||||
#define OBJ_id_GostR3410_2001_ParamSet_cc OBJ_cryptocom,1L,8L,1L
|
||||
|
||||
#define SN_id_tc26_algorithms "id-tc26-algorithms"
|
||||
#define NID_id_tc26_algorithms 977
|
||||
#define OBJ_id_tc26_algorithms OBJ_id_tc26,1L
|
||||
|
||||
#define SN_id_tc26_sign "id-tc26-sign"
|
||||
#define NID_id_tc26_sign 978
|
||||
#define OBJ_id_tc26_sign OBJ_id_tc26_algorithms,1L
|
||||
|
||||
#define SN_id_GostR3410_2012_256 "gost2012_256"
|
||||
#define LN_id_GostR3410_2012_256 "GOST R 34.10-2012 with 256 bit modulus"
|
||||
#define NID_id_GostR3410_2012_256 979
|
||||
#define OBJ_id_GostR3410_2012_256 OBJ_id_tc26_sign,1L
|
||||
|
||||
#define SN_id_GostR3410_2012_512 "gost2012_512"
|
||||
#define LN_id_GostR3410_2012_512 "GOST R 34.10-2012 with 512 bit modulus"
|
||||
#define NID_id_GostR3410_2012_512 980
|
||||
#define OBJ_id_GostR3410_2012_512 OBJ_id_tc26_sign,2L
|
||||
|
||||
#define SN_id_tc26_digest "id-tc26-digest"
|
||||
#define NID_id_tc26_digest 981
|
||||
#define OBJ_id_tc26_digest OBJ_id_tc26_algorithms,2L
|
||||
|
||||
#define SN_id_GostR3411_2012_256 "md_gost12_256"
|
||||
#define LN_id_GostR3411_2012_256 "GOST R 34.11-2012 with 256 bit hash"
|
||||
#define NID_id_GostR3411_2012_256 982
|
||||
#define OBJ_id_GostR3411_2012_256 OBJ_id_tc26_digest,2L
|
||||
|
||||
#define SN_id_GostR3411_2012_512 "md_gost12_512"
|
||||
#define LN_id_GostR3411_2012_512 "GOST R 34.11-2012 with 512 bit hash"
|
||||
#define NID_id_GostR3411_2012_512 983
|
||||
#define OBJ_id_GostR3411_2012_512 OBJ_id_tc26_digest,3L
|
||||
|
||||
#define SN_id_tc26_signwithdigest "id-tc26-signwithdigest"
|
||||
#define NID_id_tc26_signwithdigest 984
|
||||
#define OBJ_id_tc26_signwithdigest OBJ_id_tc26_algorithms,3L
|
||||
|
||||
#define SN_id_tc26_signwithdigest_gost3410_2012_256 "id-tc26-signwithdigest-gost3410-2012-256"
|
||||
#define LN_id_tc26_signwithdigest_gost3410_2012_256 "GOST R 34.10-2012 with GOST R 34.11-2012 (256 bit)"
|
||||
#define NID_id_tc26_signwithdigest_gost3410_2012_256 985
|
||||
#define OBJ_id_tc26_signwithdigest_gost3410_2012_256 OBJ_id_tc26_signwithdigest,2L
|
||||
|
||||
#define SN_id_tc26_signwithdigest_gost3410_2012_512 "id-tc26-signwithdigest-gost3410-2012-512"
|
||||
#define LN_id_tc26_signwithdigest_gost3410_2012_512 "GOST R 34.10-2012 with GOST R 34.11-2012 (512 bit)"
|
||||
#define NID_id_tc26_signwithdigest_gost3410_2012_512 986
|
||||
#define OBJ_id_tc26_signwithdigest_gost3410_2012_512 OBJ_id_tc26_signwithdigest,3L
|
||||
|
||||
#define SN_id_tc26_mac "id-tc26-mac"
|
||||
#define NID_id_tc26_mac 987
|
||||
#define OBJ_id_tc26_mac OBJ_id_tc26_algorithms,4L
|
||||
|
||||
#define SN_id_tc26_hmac_gost_3411_2012_256 "id-tc26-hmac-gost-3411-2012-256"
|
||||
#define LN_id_tc26_hmac_gost_3411_2012_256 "HMAC GOST 34.11-2012 256 bit"
|
||||
#define NID_id_tc26_hmac_gost_3411_2012_256 988
|
||||
#define OBJ_id_tc26_hmac_gost_3411_2012_256 OBJ_id_tc26_mac,1L
|
||||
|
||||
#define SN_id_tc26_hmac_gost_3411_2012_512 "id-tc26-hmac-gost-3411-2012-512"
|
||||
#define LN_id_tc26_hmac_gost_3411_2012_512 "HMAC GOST 34.11-2012 512 bit"
|
||||
#define NID_id_tc26_hmac_gost_3411_2012_512 989
|
||||
#define OBJ_id_tc26_hmac_gost_3411_2012_512 OBJ_id_tc26_mac,2L
|
||||
|
||||
#define SN_id_tc26_cipher "id-tc26-cipher"
|
||||
#define NID_id_tc26_cipher 990
|
||||
#define OBJ_id_tc26_cipher OBJ_id_tc26_algorithms,5L
|
||||
|
||||
#define SN_id_tc26_cipher_gostr3412_2015_magma "id-tc26-cipher-gostr3412-2015-magma"
|
||||
#define NID_id_tc26_cipher_gostr3412_2015_magma 1173
|
||||
#define OBJ_id_tc26_cipher_gostr3412_2015_magma OBJ_id_tc26_cipher,1L
|
||||
|
||||
#define SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm "id-tc26-cipher-gostr3412-2015-magma-ctracpkm"
|
||||
#define NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm 1174
|
||||
#define OBJ_id_tc26_cipher_gostr3412_2015_magma_ctracpkm OBJ_id_tc26_cipher_gostr3412_2015_magma,1L
|
||||
|
||||
#define SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac "id-tc26-cipher-gostr3412-2015-magma-ctracpkm-omac"
|
||||
#define NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac 1175
|
||||
#define OBJ_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac OBJ_id_tc26_cipher_gostr3412_2015_magma,2L
|
||||
|
||||
#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik "id-tc26-cipher-gostr3412-2015-kuznyechik"
|
||||
#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik 1176
|
||||
#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik OBJ_id_tc26_cipher,2L
|
||||
|
||||
#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm "id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm"
|
||||
#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm 1177
|
||||
#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik,1L
|
||||
|
||||
#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac "id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm-omac"
|
||||
#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac 1178
|
||||
#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik,2L
|
||||
|
||||
#define SN_id_tc26_agreement "id-tc26-agreement"
|
||||
#define NID_id_tc26_agreement 991
|
||||
#define OBJ_id_tc26_agreement OBJ_id_tc26_algorithms,6L
|
||||
|
||||
#define SN_id_tc26_agreement_gost_3410_2012_256 "id-tc26-agreement-gost-3410-2012-256"
|
||||
#define NID_id_tc26_agreement_gost_3410_2012_256 992
|
||||
#define OBJ_id_tc26_agreement_gost_3410_2012_256 OBJ_id_tc26_agreement,1L
|
||||
|
||||
#define SN_id_tc26_agreement_gost_3410_2012_512 "id-tc26-agreement-gost-3410-2012-512"
|
||||
#define NID_id_tc26_agreement_gost_3410_2012_512 993
|
||||
#define OBJ_id_tc26_agreement_gost_3410_2012_512 OBJ_id_tc26_agreement,2L
|
||||
|
||||
#define SN_id_tc26_wrap "id-tc26-wrap"
|
||||
#define NID_id_tc26_wrap 1179
|
||||
#define OBJ_id_tc26_wrap OBJ_id_tc26_algorithms,7L
|
||||
|
||||
#define SN_id_tc26_wrap_gostr3412_2015_magma "id-tc26-wrap-gostr3412-2015-magma"
|
||||
#define NID_id_tc26_wrap_gostr3412_2015_magma 1180
|
||||
#define OBJ_id_tc26_wrap_gostr3412_2015_magma OBJ_id_tc26_wrap,1L
|
||||
|
||||
#define SN_id_tc26_wrap_gostr3412_2015_magma_kexp15 "id-tc26-wrap-gostr3412-2015-magma-kexp15"
|
||||
#define NID_id_tc26_wrap_gostr3412_2015_magma_kexp15 1181
|
||||
#define OBJ_id_tc26_wrap_gostr3412_2015_magma_kexp15 OBJ_id_tc26_wrap_gostr3412_2015_magma,1L
|
||||
|
||||
#define SN_id_tc26_wrap_gostr3412_2015_kuznyechik "id-tc26-wrap-gostr3412-2015-kuznyechik"
|
||||
#define NID_id_tc26_wrap_gostr3412_2015_kuznyechik 1182
|
||||
#define OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik OBJ_id_tc26_wrap,2L
|
||||
|
||||
#define SN_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 "id-tc26-wrap-gostr3412-2015-kuznyechik-kexp15"
|
||||
#define NID_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 1183
|
||||
#define OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik,1L
|
||||
|
||||
#define SN_id_tc26_constants "id-tc26-constants"
|
||||
#define NID_id_tc26_constants 994
|
||||
#define OBJ_id_tc26_constants OBJ_id_tc26,2L
|
||||
|
||||
#define SN_id_tc26_sign_constants "id-tc26-sign-constants"
|
||||
#define NID_id_tc26_sign_constants 995
|
||||
#define OBJ_id_tc26_sign_constants OBJ_id_tc26_constants,1L
|
||||
|
||||
#define SN_id_tc26_gost_3410_2012_256_constants "id-tc26-gost-3410-2012-256-constants"
|
||||
#define NID_id_tc26_gost_3410_2012_256_constants 1147
|
||||
#define OBJ_id_tc26_gost_3410_2012_256_constants OBJ_id_tc26_sign_constants,1L
|
||||
|
||||
#define SN_id_tc26_gost_3410_2012_256_paramSetA "id-tc26-gost-3410-2012-256-paramSetA"
|
||||
#define LN_id_tc26_gost_3410_2012_256_paramSetA "GOST R 34.10-2012 (256 bit) ParamSet A"
|
||||
#define NID_id_tc26_gost_3410_2012_256_paramSetA 1148
|
||||
#define OBJ_id_tc26_gost_3410_2012_256_paramSetA OBJ_id_tc26_gost_3410_2012_256_constants,1L
|
||||
|
||||
#define SN_id_tc26_gost_3410_2012_256_paramSetB "id-tc26-gost-3410-2012-256-paramSetB"
|
||||
#define LN_id_tc26_gost_3410_2012_256_paramSetB "GOST R 34.10-2012 (256 bit) ParamSet B"
|
||||
#define NID_id_tc26_gost_3410_2012_256_paramSetB 1184
|
||||
#define OBJ_id_tc26_gost_3410_2012_256_paramSetB OBJ_id_tc26_gost_3410_2012_256_constants,2L
|
||||
|
||||
#define SN_id_tc26_gost_3410_2012_256_paramSetC "id-tc26-gost-3410-2012-256-paramSetC"
|
||||
#define LN_id_tc26_gost_3410_2012_256_paramSetC "GOST R 34.10-2012 (256 bit) ParamSet C"
|
||||
#define NID_id_tc26_gost_3410_2012_256_paramSetC 1185
|
||||
#define OBJ_id_tc26_gost_3410_2012_256_paramSetC OBJ_id_tc26_gost_3410_2012_256_constants,3L
|
||||
|
||||
#define SN_id_tc26_gost_3410_2012_256_paramSetD "id-tc26-gost-3410-2012-256-paramSetD"
|
||||
#define LN_id_tc26_gost_3410_2012_256_paramSetD "GOST R 34.10-2012 (256 bit) ParamSet D"
|
||||
#define NID_id_tc26_gost_3410_2012_256_paramSetD 1186
|
||||
#define OBJ_id_tc26_gost_3410_2012_256_paramSetD OBJ_id_tc26_gost_3410_2012_256_constants,4L
|
||||
|
||||
#define SN_id_tc26_gost_3410_2012_512_constants "id-tc26-gost-3410-2012-512-constants"
|
||||
#define NID_id_tc26_gost_3410_2012_512_constants 996
|
||||
#define OBJ_id_tc26_gost_3410_2012_512_constants OBJ_id_tc26_sign_constants,2L
|
||||
|
||||
#define SN_id_tc26_gost_3410_2012_512_paramSetTest "id-tc26-gost-3410-2012-512-paramSetTest"
|
||||
#define LN_id_tc26_gost_3410_2012_512_paramSetTest "GOST R 34.10-2012 (512 bit) testing parameter set"
|
||||
#define NID_id_tc26_gost_3410_2012_512_paramSetTest 997
|
||||
#define OBJ_id_tc26_gost_3410_2012_512_paramSetTest OBJ_id_tc26_gost_3410_2012_512_constants,0L
|
||||
|
||||
#define SN_id_tc26_gost_3410_2012_512_paramSetA "id-tc26-gost-3410-2012-512-paramSetA"
|
||||
#define LN_id_tc26_gost_3410_2012_512_paramSetA "GOST R 34.10-2012 (512 bit) ParamSet A"
|
||||
#define NID_id_tc26_gost_3410_2012_512_paramSetA 998
|
||||
#define OBJ_id_tc26_gost_3410_2012_512_paramSetA OBJ_id_tc26_gost_3410_2012_512_constants,1L
|
||||
|
||||
#define SN_id_tc26_gost_3410_2012_512_paramSetB "id-tc26-gost-3410-2012-512-paramSetB"
|
||||
#define LN_id_tc26_gost_3410_2012_512_paramSetB "GOST R 34.10-2012 (512 bit) ParamSet B"
|
||||
#define NID_id_tc26_gost_3410_2012_512_paramSetB 999
|
||||
#define OBJ_id_tc26_gost_3410_2012_512_paramSetB OBJ_id_tc26_gost_3410_2012_512_constants,2L
|
||||
|
||||
#define SN_id_tc26_gost_3410_2012_512_paramSetC "id-tc26-gost-3410-2012-512-paramSetC"
|
||||
#define LN_id_tc26_gost_3410_2012_512_paramSetC "GOST R 34.10-2012 (512 bit) ParamSet C"
|
||||
#define NID_id_tc26_gost_3410_2012_512_paramSetC 1149
|
||||
#define OBJ_id_tc26_gost_3410_2012_512_paramSetC OBJ_id_tc26_gost_3410_2012_512_constants,3L
|
||||
|
||||
#define SN_id_tc26_digest_constants "id-tc26-digest-constants"
|
||||
#define NID_id_tc26_digest_constants 1000
|
||||
#define OBJ_id_tc26_digest_constants OBJ_id_tc26_constants,2L
|
||||
|
||||
#define SN_id_tc26_cipher_constants "id-tc26-cipher-constants"
|
||||
#define NID_id_tc26_cipher_constants 1001
|
||||
#define OBJ_id_tc26_cipher_constants OBJ_id_tc26_constants,5L
|
||||
|
||||
#define SN_id_tc26_gost_28147_constants "id-tc26-gost-28147-constants"
|
||||
#define NID_id_tc26_gost_28147_constants 1002
|
||||
#define OBJ_id_tc26_gost_28147_constants OBJ_id_tc26_cipher_constants,1L
|
||||
|
||||
#define SN_id_tc26_gost_28147_param_Z "id-tc26-gost-28147-param-Z"
|
||||
#define LN_id_tc26_gost_28147_param_Z "GOST 28147-89 TC26 parameter set"
|
||||
#define NID_id_tc26_gost_28147_param_Z 1003
|
||||
#define OBJ_id_tc26_gost_28147_param_Z OBJ_id_tc26_gost_28147_constants,1L
|
||||
|
||||
#define SN_INN "INN"
|
||||
#define LN_INN "INN"
|
||||
#define NID_INN 1004
|
||||
#define OBJ_INN OBJ_member_body,643L,3L,131L,1L,1L
|
||||
|
||||
#define SN_OGRN "OGRN"
|
||||
#define LN_OGRN "OGRN"
|
||||
#define NID_OGRN 1005
|
||||
#define OBJ_OGRN OBJ_member_body,643L,100L,1L
|
||||
|
||||
#define SN_SNILS "SNILS"
|
||||
#define LN_SNILS "SNILS"
|
||||
#define NID_SNILS 1006
|
||||
#define OBJ_SNILS OBJ_member_body,643L,100L,3L
|
||||
|
||||
#define SN_subjectSignTool "subjectSignTool"
|
||||
#define LN_subjectSignTool "Signing Tool of Subject"
|
||||
#define NID_subjectSignTool 1007
|
||||
#define OBJ_subjectSignTool OBJ_member_body,643L,100L,111L
|
||||
|
||||
#define SN_issuerSignTool "issuerSignTool"
|
||||
#define LN_issuerSignTool "Signing Tool of Issuer"
|
||||
#define NID_issuerSignTool 1008
|
||||
#define OBJ_issuerSignTool OBJ_member_body,643L,100L,112L
|
||||
|
||||
#define SN_grasshopper_ecb "grasshopper-ecb"
|
||||
#define NID_grasshopper_ecb 1012
|
||||
|
||||
#define SN_grasshopper_ctr "grasshopper-ctr"
|
||||
#define NID_grasshopper_ctr 1013
|
||||
|
||||
#define SN_grasshopper_ofb "grasshopper-ofb"
|
||||
#define NID_grasshopper_ofb 1014
|
||||
|
||||
#define SN_grasshopper_cbc "grasshopper-cbc"
|
||||
#define NID_grasshopper_cbc 1015
|
||||
|
||||
#define SN_grasshopper_cfb "grasshopper-cfb"
|
||||
#define NID_grasshopper_cfb 1016
|
||||
|
||||
#define SN_grasshopper_mac "grasshopper-mac"
|
||||
#define NID_grasshopper_mac 1017
|
||||
|
||||
#define SN_magma_ecb "magma-ecb"
|
||||
#define NID_magma_ecb 1187
|
||||
|
||||
#define SN_magma_ctr "magma-ctr"
|
||||
#define NID_magma_ctr 1188
|
||||
|
||||
#define SN_magma_ofb "magma-ofb"
|
||||
#define NID_magma_ofb 1189
|
||||
|
||||
#define SN_magma_cbc "magma-cbc"
|
||||
#define NID_magma_cbc 1190
|
||||
|
||||
#define SN_magma_cfb "magma-cfb"
|
||||
#define NID_magma_cfb 1191
|
||||
|
||||
#define SN_magma_mac "magma-mac"
|
||||
#define NID_magma_mac 1192
|
||||
|
||||
#define SN_camellia_128_cbc "CAMELLIA-128-CBC"
|
||||
#define LN_camellia_128_cbc "camellia-128-cbc"
|
||||
#define NID_camellia_128_cbc 751
|
||||
#define OBJ_camellia_128_cbc 1L,2L,392L,200011L,61L,1L,1L,1L,2L
|
||||
|
||||
#define SN_camellia_192_cbc "CAMELLIA-192-CBC"
|
||||
#define LN_camellia_192_cbc "camellia-192-cbc"
|
||||
#define NID_camellia_192_cbc 752
|
||||
#define OBJ_camellia_192_cbc 1L,2L,392L,200011L,61L,1L,1L,1L,3L
|
||||
|
||||
#define SN_camellia_256_cbc "CAMELLIA-256-CBC"
|
||||
#define LN_camellia_256_cbc "camellia-256-cbc"
|
||||
#define NID_camellia_256_cbc 753
|
||||
#define OBJ_camellia_256_cbc 1L,2L,392L,200011L,61L,1L,1L,1L,4L
|
||||
|
||||
#define SN_id_camellia128_wrap "id-camellia128-wrap"
|
||||
#define NID_id_camellia128_wrap 907
|
||||
#define OBJ_id_camellia128_wrap 1L,2L,392L,200011L,61L,1L,1L,3L,2L
|
||||
|
||||
#define SN_id_camellia192_wrap "id-camellia192-wrap"
|
||||
#define NID_id_camellia192_wrap 908
|
||||
#define OBJ_id_camellia192_wrap 1L,2L,392L,200011L,61L,1L,1L,3L,3L
|
||||
|
||||
#define SN_id_camellia256_wrap "id-camellia256-wrap"
|
||||
#define NID_id_camellia256_wrap 909
|
||||
#define OBJ_id_camellia256_wrap 1L,2L,392L,200011L,61L,1L,1L,3L,4L
|
||||
|
||||
#define OBJ_ntt_ds 0L,3L,4401L,5L
|
||||
|
||||
#define OBJ_camellia OBJ_ntt_ds,3L,1L,9L
|
||||
|
||||
#define SN_camellia_128_ecb "CAMELLIA-128-ECB"
|
||||
#define LN_camellia_128_ecb "camellia-128-ecb"
|
||||
#define NID_camellia_128_ecb 754
|
||||
#define OBJ_camellia_128_ecb OBJ_camellia,1L
|
||||
|
||||
#define SN_camellia_128_ofb128 "CAMELLIA-128-OFB"
|
||||
#define LN_camellia_128_ofb128 "camellia-128-ofb"
|
||||
#define NID_camellia_128_ofb128 766
|
||||
#define OBJ_camellia_128_ofb128 OBJ_camellia,3L
|
||||
|
||||
#define SN_camellia_128_cfb128 "CAMELLIA-128-CFB"
|
||||
#define LN_camellia_128_cfb128 "camellia-128-cfb"
|
||||
#define NID_camellia_128_cfb128 757
|
||||
#define OBJ_camellia_128_cfb128 OBJ_camellia,4L
|
||||
|
||||
#define SN_camellia_128_gcm "CAMELLIA-128-GCM"
|
||||
#define LN_camellia_128_gcm "camellia-128-gcm"
|
||||
#define NID_camellia_128_gcm 961
|
||||
#define OBJ_camellia_128_gcm OBJ_camellia,6L
|
||||
|
||||
#define SN_camellia_128_ccm "CAMELLIA-128-CCM"
|
||||
#define LN_camellia_128_ccm "camellia-128-ccm"
|
||||
#define NID_camellia_128_ccm 962
|
||||
#define OBJ_camellia_128_ccm OBJ_camellia,7L
|
||||
|
||||
#define SN_camellia_128_ctr "CAMELLIA-128-CTR"
|
||||
#define LN_camellia_128_ctr "camellia-128-ctr"
|
||||
#define NID_camellia_128_ctr 963
|
||||
#define OBJ_camellia_128_ctr OBJ_camellia,9L
|
||||
|
||||
#define SN_camellia_128_cmac "CAMELLIA-128-CMAC"
|
||||
#define LN_camellia_128_cmac "camellia-128-cmac"
|
||||
#define NID_camellia_128_cmac 964
|
||||
#define OBJ_camellia_128_cmac OBJ_camellia,10L
|
||||
|
||||
#define SN_camellia_192_ecb "CAMELLIA-192-ECB"
|
||||
#define LN_camellia_192_ecb "camellia-192-ecb"
|
||||
#define NID_camellia_192_ecb 755
|
||||
#define OBJ_camellia_192_ecb OBJ_camellia,21L
|
||||
|
||||
#define SN_camellia_192_ofb128 "CAMELLIA-192-OFB"
|
||||
#define LN_camellia_192_ofb128 "camellia-192-ofb"
|
||||
#define NID_camellia_192_ofb128 767
|
||||
#define OBJ_camellia_192_ofb128 OBJ_camellia,23L
|
||||
|
||||
#define SN_camellia_192_cfb128 "CAMELLIA-192-CFB"
|
||||
#define LN_camellia_192_cfb128 "camellia-192-cfb"
|
||||
#define NID_camellia_192_cfb128 758
|
||||
#define OBJ_camellia_192_cfb128 OBJ_camellia,24L
|
||||
|
||||
#define SN_camellia_192_gcm "CAMELLIA-192-GCM"
|
||||
#define LN_camellia_192_gcm "camellia-192-gcm"
|
||||
#define NID_camellia_192_gcm 965
|
||||
#define OBJ_camellia_192_gcm OBJ_camellia,26L
|
||||
|
||||
#define SN_camellia_192_ccm "CAMELLIA-192-CCM"
|
||||
#define LN_camellia_192_ccm "camellia-192-ccm"
|
||||
#define NID_camellia_192_ccm 966
|
||||
#define OBJ_camellia_192_ccm OBJ_camellia,27L
|
||||
|
||||
#define SN_camellia_192_ctr "CAMELLIA-192-CTR"
|
||||
#define LN_camellia_192_ctr "camellia-192-ctr"
|
||||
#define NID_camellia_192_ctr 967
|
||||
#define OBJ_camellia_192_ctr OBJ_camellia,29L
|
||||
|
||||
#define SN_camellia_192_cmac "CAMELLIA-192-CMAC"
|
||||
#define LN_camellia_192_cmac "camellia-192-cmac"
|
||||
#define NID_camellia_192_cmac 968
|
||||
#define OBJ_camellia_192_cmac OBJ_camellia,30L
|
||||
|
||||
#define SN_camellia_256_ecb "CAMELLIA-256-ECB"
|
||||
#define LN_camellia_256_ecb "camellia-256-ecb"
|
||||
#define NID_camellia_256_ecb 756
|
||||
#define OBJ_camellia_256_ecb OBJ_camellia,41L
|
||||
|
||||
#define SN_camellia_256_ofb128 "CAMELLIA-256-OFB"
|
||||
#define LN_camellia_256_ofb128 "camellia-256-ofb"
|
||||
#define NID_camellia_256_ofb128 768
|
||||
#define OBJ_camellia_256_ofb128 OBJ_camellia,43L
|
||||
|
||||
#define SN_camellia_256_cfb128 "CAMELLIA-256-CFB"
|
||||
#define LN_camellia_256_cfb128 "camellia-256-cfb"
|
||||
#define NID_camellia_256_cfb128 759
|
||||
#define OBJ_camellia_256_cfb128 OBJ_camellia,44L
|
||||
|
||||
#define SN_camellia_256_gcm "CAMELLIA-256-GCM"
|
||||
#define LN_camellia_256_gcm "camellia-256-gcm"
|
||||
#define NID_camellia_256_gcm 969
|
||||
#define OBJ_camellia_256_gcm OBJ_camellia,46L
|
||||
|
||||
#define SN_camellia_256_ccm "CAMELLIA-256-CCM"
|
||||
#define LN_camellia_256_ccm "camellia-256-ccm"
|
||||
#define NID_camellia_256_ccm 970
|
||||
#define OBJ_camellia_256_ccm OBJ_camellia,47L
|
||||
|
||||
#define SN_camellia_256_ctr "CAMELLIA-256-CTR"
|
||||
#define LN_camellia_256_ctr "camellia-256-ctr"
|
||||
#define NID_camellia_256_ctr 971
|
||||
#define OBJ_camellia_256_ctr OBJ_camellia,49L
|
||||
|
||||
#define SN_camellia_256_cmac "CAMELLIA-256-CMAC"
|
||||
#define LN_camellia_256_cmac "camellia-256-cmac"
|
||||
#define NID_camellia_256_cmac 972
|
||||
#define OBJ_camellia_256_cmac OBJ_camellia,50L
|
||||
|
||||
#define SN_camellia_128_cfb1 "CAMELLIA-128-CFB1"
|
||||
#define LN_camellia_128_cfb1 "camellia-128-cfb1"
|
||||
#define NID_camellia_128_cfb1 760
|
||||
|
||||
#define SN_camellia_192_cfb1 "CAMELLIA-192-CFB1"
|
||||
#define LN_camellia_192_cfb1 "camellia-192-cfb1"
|
||||
#define NID_camellia_192_cfb1 761
|
||||
|
||||
#define SN_camellia_256_cfb1 "CAMELLIA-256-CFB1"
|
||||
#define LN_camellia_256_cfb1 "camellia-256-cfb1"
|
||||
#define NID_camellia_256_cfb1 762
|
||||
|
||||
#define SN_camellia_128_cfb8 "CAMELLIA-128-CFB8"
|
||||
#define LN_camellia_128_cfb8 "camellia-128-cfb8"
|
||||
#define NID_camellia_128_cfb8 763
|
||||
|
||||
#define SN_camellia_192_cfb8 "CAMELLIA-192-CFB8"
|
||||
#define LN_camellia_192_cfb8 "camellia-192-cfb8"
|
||||
#define NID_camellia_192_cfb8 764
|
||||
|
||||
#define SN_camellia_256_cfb8 "CAMELLIA-256-CFB8"
|
||||
#define LN_camellia_256_cfb8 "camellia-256-cfb8"
|
||||
#define NID_camellia_256_cfb8 765
|
||||
|
||||
#define OBJ_aria 1L,2L,410L,200046L,1L,1L
|
||||
|
||||
#define SN_aria_128_ecb "ARIA-128-ECB"
|
||||
#define LN_aria_128_ecb "aria-128-ecb"
|
||||
#define NID_aria_128_ecb 1065
|
||||
#define OBJ_aria_128_ecb OBJ_aria,1L
|
||||
|
||||
#define SN_aria_128_cbc "ARIA-128-CBC"
|
||||
#define LN_aria_128_cbc "aria-128-cbc"
|
||||
#define NID_aria_128_cbc 1066
|
||||
#define OBJ_aria_128_cbc OBJ_aria,2L
|
||||
|
||||
#define SN_aria_128_cfb128 "ARIA-128-CFB"
|
||||
#define LN_aria_128_cfb128 "aria-128-cfb"
|
||||
#define NID_aria_128_cfb128 1067
|
||||
#define OBJ_aria_128_cfb128 OBJ_aria,3L
|
||||
|
||||
#define SN_aria_128_ofb128 "ARIA-128-OFB"
|
||||
#define LN_aria_128_ofb128 "aria-128-ofb"
|
||||
#define NID_aria_128_ofb128 1068
|
||||
#define OBJ_aria_128_ofb128 OBJ_aria,4L
|
||||
|
||||
#define SN_aria_128_ctr "ARIA-128-CTR"
|
||||
#define LN_aria_128_ctr "aria-128-ctr"
|
||||
#define NID_aria_128_ctr 1069
|
||||
#define OBJ_aria_128_ctr OBJ_aria,5L
|
||||
|
||||
#define SN_aria_192_ecb "ARIA-192-ECB"
|
||||
#define LN_aria_192_ecb "aria-192-ecb"
|
||||
#define NID_aria_192_ecb 1070
|
||||
#define OBJ_aria_192_ecb OBJ_aria,6L
|
||||
|
||||
#define SN_aria_192_cbc "ARIA-192-CBC"
|
||||
#define LN_aria_192_cbc "aria-192-cbc"
|
||||
#define NID_aria_192_cbc 1071
|
||||
#define OBJ_aria_192_cbc OBJ_aria,7L
|
||||
|
||||
#define SN_aria_192_cfb128 "ARIA-192-CFB"
|
||||
#define LN_aria_192_cfb128 "aria-192-cfb"
|
||||
#define NID_aria_192_cfb128 1072
|
||||
#define OBJ_aria_192_cfb128 OBJ_aria,8L
|
||||
|
||||
#define SN_aria_192_ofb128 "ARIA-192-OFB"
|
||||
#define LN_aria_192_ofb128 "aria-192-ofb"
|
||||
#define NID_aria_192_ofb128 1073
|
||||
#define OBJ_aria_192_ofb128 OBJ_aria,9L
|
||||
|
||||
#define SN_aria_192_ctr "ARIA-192-CTR"
|
||||
#define LN_aria_192_ctr "aria-192-ctr"
|
||||
#define NID_aria_192_ctr 1074
|
||||
#define OBJ_aria_192_ctr OBJ_aria,10L
|
||||
|
||||
#define SN_aria_256_ecb "ARIA-256-ECB"
|
||||
#define LN_aria_256_ecb "aria-256-ecb"
|
||||
#define NID_aria_256_ecb 1075
|
||||
#define OBJ_aria_256_ecb OBJ_aria,11L
|
||||
|
||||
#define SN_aria_256_cbc "ARIA-256-CBC"
|
||||
#define LN_aria_256_cbc "aria-256-cbc"
|
||||
#define NID_aria_256_cbc 1076
|
||||
#define OBJ_aria_256_cbc OBJ_aria,12L
|
||||
|
||||
#define SN_aria_256_cfb128 "ARIA-256-CFB"
|
||||
#define LN_aria_256_cfb128 "aria-256-cfb"
|
||||
#define NID_aria_256_cfb128 1077
|
||||
#define OBJ_aria_256_cfb128 OBJ_aria,13L
|
||||
|
||||
#define SN_aria_256_ofb128 "ARIA-256-OFB"
|
||||
#define LN_aria_256_ofb128 "aria-256-ofb"
|
||||
#define NID_aria_256_ofb128 1078
|
||||
#define OBJ_aria_256_ofb128 OBJ_aria,14L
|
||||
|
||||
#define SN_aria_256_ctr "ARIA-256-CTR"
|
||||
#define LN_aria_256_ctr "aria-256-ctr"
|
||||
#define NID_aria_256_ctr 1079
|
||||
#define OBJ_aria_256_ctr OBJ_aria,15L
|
||||
|
||||
#define SN_aria_128_cfb1 "ARIA-128-CFB1"
|
||||
#define LN_aria_128_cfb1 "aria-128-cfb1"
|
||||
#define NID_aria_128_cfb1 1080
|
||||
|
||||
#define SN_aria_192_cfb1 "ARIA-192-CFB1"
|
||||
#define LN_aria_192_cfb1 "aria-192-cfb1"
|
||||
#define NID_aria_192_cfb1 1081
|
||||
|
||||
#define SN_aria_256_cfb1 "ARIA-256-CFB1"
|
||||
#define LN_aria_256_cfb1 "aria-256-cfb1"
|
||||
#define NID_aria_256_cfb1 1082
|
||||
|
||||
#define SN_aria_128_cfb8 "ARIA-128-CFB8"
|
||||
#define LN_aria_128_cfb8 "aria-128-cfb8"
|
||||
#define NID_aria_128_cfb8 1083
|
||||
|
||||
#define SN_aria_192_cfb8 "ARIA-192-CFB8"
|
||||
#define LN_aria_192_cfb8 "aria-192-cfb8"
|
||||
#define NID_aria_192_cfb8 1084
|
||||
|
||||
#define SN_aria_256_cfb8 "ARIA-256-CFB8"
|
||||
#define LN_aria_256_cfb8 "aria-256-cfb8"
|
||||
#define NID_aria_256_cfb8 1085
|
||||
|
||||
#define SN_aria_128_ccm "ARIA-128-CCM"
|
||||
#define LN_aria_128_ccm "aria-128-ccm"
|
||||
#define NID_aria_128_ccm 1120
|
||||
#define OBJ_aria_128_ccm OBJ_aria,37L
|
||||
|
||||
#define SN_aria_192_ccm "ARIA-192-CCM"
|
||||
#define LN_aria_192_ccm "aria-192-ccm"
|
||||
#define NID_aria_192_ccm 1121
|
||||
#define OBJ_aria_192_ccm OBJ_aria,38L
|
||||
|
||||
#define SN_aria_256_ccm "ARIA-256-CCM"
|
||||
#define LN_aria_256_ccm "aria-256-ccm"
|
||||
#define NID_aria_256_ccm 1122
|
||||
#define OBJ_aria_256_ccm OBJ_aria,39L
|
||||
|
||||
#define SN_aria_128_gcm "ARIA-128-GCM"
|
||||
#define LN_aria_128_gcm "aria-128-gcm"
|
||||
#define NID_aria_128_gcm 1123
|
||||
#define OBJ_aria_128_gcm OBJ_aria,34L
|
||||
|
||||
#define SN_aria_192_gcm "ARIA-192-GCM"
|
||||
#define LN_aria_192_gcm "aria-192-gcm"
|
||||
#define NID_aria_192_gcm 1124
|
||||
#define OBJ_aria_192_gcm OBJ_aria,35L
|
||||
|
||||
#define SN_aria_256_gcm "ARIA-256-GCM"
|
||||
#define LN_aria_256_gcm "aria-256-gcm"
|
||||
#define NID_aria_256_gcm 1125
|
||||
#define OBJ_aria_256_gcm OBJ_aria,36L
|
||||
|
||||
#define SN_kisa "KISA"
|
||||
#define LN_kisa "kisa"
|
||||
#define NID_kisa 773
|
||||
#define OBJ_kisa OBJ_member_body,410L,200004L
|
||||
|
||||
#define SN_seed_ecb "SEED-ECB"
|
||||
#define LN_seed_ecb "seed-ecb"
|
||||
#define NID_seed_ecb 776
|
||||
#define OBJ_seed_ecb OBJ_kisa,1L,3L
|
||||
|
||||
#define SN_seed_cbc "SEED-CBC"
|
||||
#define LN_seed_cbc "seed-cbc"
|
||||
#define NID_seed_cbc 777
|
||||
#define OBJ_seed_cbc OBJ_kisa,1L,4L
|
||||
|
||||
#define SN_seed_cfb128 "SEED-CFB"
|
||||
#define LN_seed_cfb128 "seed-cfb"
|
||||
#define NID_seed_cfb128 779
|
||||
#define OBJ_seed_cfb128 OBJ_kisa,1L,5L
|
||||
|
||||
#define SN_seed_ofb128 "SEED-OFB"
|
||||
#define LN_seed_ofb128 "seed-ofb"
|
||||
#define NID_seed_ofb128 778
|
||||
#define OBJ_seed_ofb128 OBJ_kisa,1L,6L
|
||||
|
||||
#define SN_sm4_ecb "SM4-ECB"
|
||||
#define LN_sm4_ecb "sm4-ecb"
|
||||
#define NID_sm4_ecb 1133
|
||||
#define OBJ_sm4_ecb OBJ_sm_scheme,104L,1L
|
||||
|
||||
#define SN_sm4_cbc "SM4-CBC"
|
||||
#define LN_sm4_cbc "sm4-cbc"
|
||||
#define NID_sm4_cbc 1134
|
||||
#define OBJ_sm4_cbc OBJ_sm_scheme,104L,2L
|
||||
|
||||
#define SN_sm4_ofb128 "SM4-OFB"
|
||||
#define LN_sm4_ofb128 "sm4-ofb"
|
||||
#define NID_sm4_ofb128 1135
|
||||
#define OBJ_sm4_ofb128 OBJ_sm_scheme,104L,3L
|
||||
|
||||
#define SN_sm4_cfb128 "SM4-CFB"
|
||||
#define LN_sm4_cfb128 "sm4-cfb"
|
||||
#define NID_sm4_cfb128 1137
|
||||
#define OBJ_sm4_cfb128 OBJ_sm_scheme,104L,4L
|
||||
|
||||
#define SN_sm4_cfb1 "SM4-CFB1"
|
||||
#define LN_sm4_cfb1 "sm4-cfb1"
|
||||
#define NID_sm4_cfb1 1136
|
||||
#define OBJ_sm4_cfb1 OBJ_sm_scheme,104L,5L
|
||||
|
||||
#define SN_sm4_cfb8 "SM4-CFB8"
|
||||
#define LN_sm4_cfb8 "sm4-cfb8"
|
||||
#define NID_sm4_cfb8 1138
|
||||
#define OBJ_sm4_cfb8 OBJ_sm_scheme,104L,6L
|
||||
|
||||
#define SN_sm4_ctr "SM4-CTR"
|
||||
#define LN_sm4_ctr "sm4-ctr"
|
||||
#define NID_sm4_ctr 1139
|
||||
#define OBJ_sm4_ctr OBJ_sm_scheme,104L,7L
|
||||
|
||||
#define SN_hmac "HMAC"
|
||||
#define LN_hmac "hmac"
|
||||
#define NID_hmac 855
|
||||
|
||||
#define SN_cmac "CMAC"
|
||||
#define LN_cmac "cmac"
|
||||
#define NID_cmac 894
|
||||
|
||||
#define SN_rc4_hmac_md5 "RC4-HMAC-MD5"
|
||||
#define LN_rc4_hmac_md5 "rc4-hmac-md5"
|
||||
#define NID_rc4_hmac_md5 915
|
||||
|
||||
#define SN_aes_128_cbc_hmac_sha1 "AES-128-CBC-HMAC-SHA1"
|
||||
#define LN_aes_128_cbc_hmac_sha1 "aes-128-cbc-hmac-sha1"
|
||||
#define NID_aes_128_cbc_hmac_sha1 916
|
||||
|
||||
#define SN_aes_192_cbc_hmac_sha1 "AES-192-CBC-HMAC-SHA1"
|
||||
#define LN_aes_192_cbc_hmac_sha1 "aes-192-cbc-hmac-sha1"
|
||||
#define NID_aes_192_cbc_hmac_sha1 917
|
||||
|
||||
#define SN_aes_256_cbc_hmac_sha1 "AES-256-CBC-HMAC-SHA1"
|
||||
#define LN_aes_256_cbc_hmac_sha1 "aes-256-cbc-hmac-sha1"
|
||||
#define NID_aes_256_cbc_hmac_sha1 918
|
||||
|
||||
#define SN_aes_128_cbc_hmac_sha256 "AES-128-CBC-HMAC-SHA256"
|
||||
#define LN_aes_128_cbc_hmac_sha256 "aes-128-cbc-hmac-sha256"
|
||||
#define NID_aes_128_cbc_hmac_sha256 948
|
||||
|
||||
#define SN_aes_192_cbc_hmac_sha256 "AES-192-CBC-HMAC-SHA256"
|
||||
#define LN_aes_192_cbc_hmac_sha256 "aes-192-cbc-hmac-sha256"
|
||||
#define NID_aes_192_cbc_hmac_sha256 949
|
||||
|
||||
#define SN_aes_256_cbc_hmac_sha256 "AES-256-CBC-HMAC-SHA256"
|
||||
#define LN_aes_256_cbc_hmac_sha256 "aes-256-cbc-hmac-sha256"
|
||||
#define NID_aes_256_cbc_hmac_sha256 950
|
||||
|
||||
#define SN_chacha20_poly1305 "ChaCha20-Poly1305"
|
||||
#define LN_chacha20_poly1305 "chacha20-poly1305"
|
||||
#define NID_chacha20_poly1305 1018
|
||||
|
||||
#define SN_chacha20 "ChaCha20"
|
||||
#define LN_chacha20 "chacha20"
|
||||
#define NID_chacha20 1019
|
||||
|
||||
#define SN_dhpublicnumber "dhpublicnumber"
|
||||
#define LN_dhpublicnumber "X9.42 DH"
|
||||
#define NID_dhpublicnumber 920
|
||||
#define OBJ_dhpublicnumber OBJ_ISO_US,10046L,2L,1L
|
||||
|
||||
#define SN_brainpoolP160r1 "brainpoolP160r1"
|
||||
#define NID_brainpoolP160r1 921
|
||||
#define OBJ_brainpoolP160r1 1L,3L,36L,3L,3L,2L,8L,1L,1L,1L
|
||||
|
||||
#define SN_brainpoolP160t1 "brainpoolP160t1"
|
||||
#define NID_brainpoolP160t1 922
|
||||
#define OBJ_brainpoolP160t1 1L,3L,36L,3L,3L,2L,8L,1L,1L,2L
|
||||
|
||||
#define SN_brainpoolP192r1 "brainpoolP192r1"
|
||||
#define NID_brainpoolP192r1 923
|
||||
#define OBJ_brainpoolP192r1 1L,3L,36L,3L,3L,2L,8L,1L,1L,3L
|
||||
|
||||
#define SN_brainpoolP192t1 "brainpoolP192t1"
|
||||
#define NID_brainpoolP192t1 924
|
||||
#define OBJ_brainpoolP192t1 1L,3L,36L,3L,3L,2L,8L,1L,1L,4L
|
||||
|
||||
#define SN_brainpoolP224r1 "brainpoolP224r1"
|
||||
#define NID_brainpoolP224r1 925
|
||||
#define OBJ_brainpoolP224r1 1L,3L,36L,3L,3L,2L,8L,1L,1L,5L
|
||||
|
||||
#define SN_brainpoolP224t1 "brainpoolP224t1"
|
||||
#define NID_brainpoolP224t1 926
|
||||
#define OBJ_brainpoolP224t1 1L,3L,36L,3L,3L,2L,8L,1L,1L,6L
|
||||
|
||||
#define SN_brainpoolP256r1 "brainpoolP256r1"
|
||||
#define NID_brainpoolP256r1 927
|
||||
#define OBJ_brainpoolP256r1 1L,3L,36L,3L,3L,2L,8L,1L,1L,7L
|
||||
|
||||
#define SN_brainpoolP256t1 "brainpoolP256t1"
|
||||
#define NID_brainpoolP256t1 928
|
||||
#define OBJ_brainpoolP256t1 1L,3L,36L,3L,3L,2L,8L,1L,1L,8L
|
||||
|
||||
#define SN_brainpoolP320r1 "brainpoolP320r1"
|
||||
#define NID_brainpoolP320r1 929
|
||||
#define OBJ_brainpoolP320r1 1L,3L,36L,3L,3L,2L,8L,1L,1L,9L
|
||||
|
||||
#define SN_brainpoolP320t1 "brainpoolP320t1"
|
||||
#define NID_brainpoolP320t1 930
|
||||
#define OBJ_brainpoolP320t1 1L,3L,36L,3L,3L,2L,8L,1L,1L,10L
|
||||
|
||||
#define SN_brainpoolP384r1 "brainpoolP384r1"
|
||||
#define NID_brainpoolP384r1 931
|
||||
#define OBJ_brainpoolP384r1 1L,3L,36L,3L,3L,2L,8L,1L,1L,11L
|
||||
|
||||
#define SN_brainpoolP384t1 "brainpoolP384t1"
|
||||
#define NID_brainpoolP384t1 932
|
||||
#define OBJ_brainpoolP384t1 1L,3L,36L,3L,3L,2L,8L,1L,1L,12L
|
||||
|
||||
#define SN_brainpoolP512r1 "brainpoolP512r1"
|
||||
#define NID_brainpoolP512r1 933
|
||||
#define OBJ_brainpoolP512r1 1L,3L,36L,3L,3L,2L,8L,1L,1L,13L
|
||||
|
||||
#define SN_brainpoolP512t1 "brainpoolP512t1"
|
||||
#define NID_brainpoolP512t1 934
|
||||
#define OBJ_brainpoolP512t1 1L,3L,36L,3L,3L,2L,8L,1L,1L,14L
|
||||
|
||||
#define OBJ_x9_63_scheme 1L,3L,133L,16L,840L,63L,0L
|
||||
|
||||
#define OBJ_secg_scheme OBJ_certicom_arc,1L
|
||||
|
||||
#define SN_dhSinglePass_stdDH_sha1kdf_scheme "dhSinglePass-stdDH-sha1kdf-scheme"
|
||||
#define NID_dhSinglePass_stdDH_sha1kdf_scheme 936
|
||||
#define OBJ_dhSinglePass_stdDH_sha1kdf_scheme OBJ_x9_63_scheme,2L
|
||||
|
||||
#define SN_dhSinglePass_stdDH_sha224kdf_scheme "dhSinglePass-stdDH-sha224kdf-scheme"
|
||||
#define NID_dhSinglePass_stdDH_sha224kdf_scheme 937
|
||||
#define OBJ_dhSinglePass_stdDH_sha224kdf_scheme OBJ_secg_scheme,11L,0L
|
||||
|
||||
#define SN_dhSinglePass_stdDH_sha256kdf_scheme "dhSinglePass-stdDH-sha256kdf-scheme"
|
||||
#define NID_dhSinglePass_stdDH_sha256kdf_scheme 938
|
||||
#define OBJ_dhSinglePass_stdDH_sha256kdf_scheme OBJ_secg_scheme,11L,1L
|
||||
|
||||
#define SN_dhSinglePass_stdDH_sha384kdf_scheme "dhSinglePass-stdDH-sha384kdf-scheme"
|
||||
#define NID_dhSinglePass_stdDH_sha384kdf_scheme 939
|
||||
#define OBJ_dhSinglePass_stdDH_sha384kdf_scheme OBJ_secg_scheme,11L,2L
|
||||
|
||||
#define SN_dhSinglePass_stdDH_sha512kdf_scheme "dhSinglePass-stdDH-sha512kdf-scheme"
|
||||
#define NID_dhSinglePass_stdDH_sha512kdf_scheme 940
|
||||
#define OBJ_dhSinglePass_stdDH_sha512kdf_scheme OBJ_secg_scheme,11L,3L
|
||||
|
||||
#define SN_dhSinglePass_cofactorDH_sha1kdf_scheme "dhSinglePass-cofactorDH-sha1kdf-scheme"
|
||||
#define NID_dhSinglePass_cofactorDH_sha1kdf_scheme 941
|
||||
#define OBJ_dhSinglePass_cofactorDH_sha1kdf_scheme OBJ_x9_63_scheme,3L
|
||||
|
||||
#define SN_dhSinglePass_cofactorDH_sha224kdf_scheme "dhSinglePass-cofactorDH-sha224kdf-scheme"
|
||||
#define NID_dhSinglePass_cofactorDH_sha224kdf_scheme 942
|
||||
#define OBJ_dhSinglePass_cofactorDH_sha224kdf_scheme OBJ_secg_scheme,14L,0L
|
||||
|
||||
#define SN_dhSinglePass_cofactorDH_sha256kdf_scheme "dhSinglePass-cofactorDH-sha256kdf-scheme"
|
||||
#define NID_dhSinglePass_cofactorDH_sha256kdf_scheme 943
|
||||
#define OBJ_dhSinglePass_cofactorDH_sha256kdf_scheme OBJ_secg_scheme,14L,1L
|
||||
|
||||
#define SN_dhSinglePass_cofactorDH_sha384kdf_scheme "dhSinglePass-cofactorDH-sha384kdf-scheme"
|
||||
#define NID_dhSinglePass_cofactorDH_sha384kdf_scheme 944
|
||||
#define OBJ_dhSinglePass_cofactorDH_sha384kdf_scheme OBJ_secg_scheme,14L,2L
|
||||
|
||||
#define SN_dhSinglePass_cofactorDH_sha512kdf_scheme "dhSinglePass-cofactorDH-sha512kdf-scheme"
|
||||
#define NID_dhSinglePass_cofactorDH_sha512kdf_scheme 945
|
||||
#define OBJ_dhSinglePass_cofactorDH_sha512kdf_scheme OBJ_secg_scheme,14L,3L
|
||||
|
||||
#define SN_dh_std_kdf "dh-std-kdf"
|
||||
#define NID_dh_std_kdf 946
|
||||
|
||||
#define SN_dh_cofactor_kdf "dh-cofactor-kdf"
|
||||
#define NID_dh_cofactor_kdf 947
|
||||
|
||||
#define SN_ct_precert_scts "ct_precert_scts"
|
||||
#define LN_ct_precert_scts "CT Precertificate SCTs"
|
||||
#define NID_ct_precert_scts 951
|
||||
#define OBJ_ct_precert_scts 1L,3L,6L,1L,4L,1L,11129L,2L,4L,2L
|
||||
|
||||
#define SN_ct_precert_poison "ct_precert_poison"
|
||||
#define LN_ct_precert_poison "CT Precertificate Poison"
|
||||
#define NID_ct_precert_poison 952
|
||||
#define OBJ_ct_precert_poison 1L,3L,6L,1L,4L,1L,11129L,2L,4L,3L
|
||||
|
||||
#define SN_ct_precert_signer "ct_precert_signer"
|
||||
#define LN_ct_precert_signer "CT Precertificate Signer"
|
||||
#define NID_ct_precert_signer 953
|
||||
#define OBJ_ct_precert_signer 1L,3L,6L,1L,4L,1L,11129L,2L,4L,4L
|
||||
|
||||
#define SN_ct_cert_scts "ct_cert_scts"
|
||||
#define LN_ct_cert_scts "CT Certificate SCTs"
|
||||
#define NID_ct_cert_scts 954
|
||||
#define OBJ_ct_cert_scts 1L,3L,6L,1L,4L,1L,11129L,2L,4L,5L
|
||||
|
||||
#define SN_jurisdictionLocalityName "jurisdictionL"
|
||||
#define LN_jurisdictionLocalityName "jurisdictionLocalityName"
|
||||
#define NID_jurisdictionLocalityName 955
|
||||
#define OBJ_jurisdictionLocalityName 1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,1L
|
||||
|
||||
#define SN_jurisdictionStateOrProvinceName "jurisdictionST"
|
||||
#define LN_jurisdictionStateOrProvinceName "jurisdictionStateOrProvinceName"
|
||||
#define NID_jurisdictionStateOrProvinceName 956
|
||||
#define OBJ_jurisdictionStateOrProvinceName 1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,2L
|
||||
|
||||
#define SN_jurisdictionCountryName "jurisdictionC"
|
||||
#define LN_jurisdictionCountryName "jurisdictionCountryName"
|
||||
#define NID_jurisdictionCountryName 957
|
||||
#define OBJ_jurisdictionCountryName 1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,3L
|
||||
|
||||
#define SN_id_scrypt "id-scrypt"
|
||||
#define LN_id_scrypt "scrypt"
|
||||
#define NID_id_scrypt 973
|
||||
#define OBJ_id_scrypt 1L,3L,6L,1L,4L,1L,11591L,4L,11L
|
||||
|
||||
#define SN_tls1_prf "TLS1-PRF"
|
||||
#define LN_tls1_prf "tls1-prf"
|
||||
#define NID_tls1_prf 1021
|
||||
|
||||
#define SN_hkdf "HKDF"
|
||||
#define LN_hkdf "hkdf"
|
||||
#define NID_hkdf 1036
|
||||
|
||||
#define SN_sshkdf "SSHKDF"
|
||||
#define LN_sshkdf "sshkdf"
|
||||
#define NID_sshkdf 1203
|
||||
|
||||
#define SN_sskdf "SSKDF"
|
||||
#define LN_sskdf "sskdf"
|
||||
#define NID_sskdf 1205
|
||||
|
||||
#define SN_x942kdf "X942KDF"
|
||||
#define LN_x942kdf "x942kdf"
|
||||
#define NID_x942kdf 1207
|
||||
|
||||
#define SN_x963kdf "X963KDF"
|
||||
#define LN_x963kdf "x963kdf"
|
||||
#define NID_x963kdf 1206
|
||||
|
||||
#define SN_id_pkinit "id-pkinit"
|
||||
#define NID_id_pkinit 1031
|
||||
#define OBJ_id_pkinit 1L,3L,6L,1L,5L,2L,3L
|
||||
|
||||
#define SN_pkInitClientAuth "pkInitClientAuth"
|
||||
#define LN_pkInitClientAuth "PKINIT Client Auth"
|
||||
#define NID_pkInitClientAuth 1032
|
||||
#define OBJ_pkInitClientAuth OBJ_id_pkinit,4L
|
||||
|
||||
#define SN_pkInitKDC "pkInitKDC"
|
||||
#define LN_pkInitKDC "Signing KDC Response"
|
||||
#define NID_pkInitKDC 1033
|
||||
#define OBJ_pkInitKDC OBJ_id_pkinit,5L
|
||||
|
||||
#define SN_X25519 "X25519"
|
||||
#define NID_X25519 1034
|
||||
#define OBJ_X25519 1L,3L,101L,110L
|
||||
|
||||
#define SN_X448 "X448"
|
||||
#define NID_X448 1035
|
||||
#define OBJ_X448 1L,3L,101L,111L
|
||||
|
||||
#define SN_ED25519 "ED25519"
|
||||
#define NID_ED25519 1087
|
||||
#define OBJ_ED25519 1L,3L,101L,112L
|
||||
|
||||
#define SN_ED448 "ED448"
|
||||
#define NID_ED448 1088
|
||||
#define OBJ_ED448 1L,3L,101L,113L
|
||||
|
||||
#define SN_kx_rsa "KxRSA"
|
||||
#define LN_kx_rsa "kx-rsa"
|
||||
#define NID_kx_rsa 1037
|
||||
|
||||
#define SN_kx_ecdhe "KxECDHE"
|
||||
#define LN_kx_ecdhe "kx-ecdhe"
|
||||
#define NID_kx_ecdhe 1038
|
||||
|
||||
#define SN_kx_dhe "KxDHE"
|
||||
#define LN_kx_dhe "kx-dhe"
|
||||
#define NID_kx_dhe 1039
|
||||
|
||||
#define SN_kx_ecdhe_psk "KxECDHE-PSK"
|
||||
#define LN_kx_ecdhe_psk "kx-ecdhe-psk"
|
||||
#define NID_kx_ecdhe_psk 1040
|
||||
|
||||
#define SN_kx_dhe_psk "KxDHE-PSK"
|
||||
#define LN_kx_dhe_psk "kx-dhe-psk"
|
||||
#define NID_kx_dhe_psk 1041
|
||||
|
||||
#define SN_kx_rsa_psk "KxRSA_PSK"
|
||||
#define LN_kx_rsa_psk "kx-rsa-psk"
|
||||
#define NID_kx_rsa_psk 1042
|
||||
|
||||
#define SN_kx_psk "KxPSK"
|
||||
#define LN_kx_psk "kx-psk"
|
||||
#define NID_kx_psk 1043
|
||||
|
||||
#define SN_kx_srp "KxSRP"
|
||||
#define LN_kx_srp "kx-srp"
|
||||
#define NID_kx_srp 1044
|
||||
|
||||
#define SN_kx_gost "KxGOST"
|
||||
#define LN_kx_gost "kx-gost"
|
||||
#define NID_kx_gost 1045
|
||||
|
||||
#define SN_kx_any "KxANY"
|
||||
#define LN_kx_any "kx-any"
|
||||
#define NID_kx_any 1063
|
||||
|
||||
#define SN_auth_rsa "AuthRSA"
|
||||
#define LN_auth_rsa "auth-rsa"
|
||||
#define NID_auth_rsa 1046
|
||||
|
||||
#define SN_auth_ecdsa "AuthECDSA"
|
||||
#define LN_auth_ecdsa "auth-ecdsa"
|
||||
#define NID_auth_ecdsa 1047
|
||||
|
||||
#define SN_auth_psk "AuthPSK"
|
||||
#define LN_auth_psk "auth-psk"
|
||||
#define NID_auth_psk 1048
|
||||
|
||||
#define SN_auth_dss "AuthDSS"
|
||||
#define LN_auth_dss "auth-dss"
|
||||
#define NID_auth_dss 1049
|
||||
|
||||
#define SN_auth_gost01 "AuthGOST01"
|
||||
#define LN_auth_gost01 "auth-gost01"
|
||||
#define NID_auth_gost01 1050
|
||||
|
||||
#define SN_auth_gost12 "AuthGOST12"
|
||||
#define LN_auth_gost12 "auth-gost12"
|
||||
#define NID_auth_gost12 1051
|
||||
|
||||
#define SN_auth_srp "AuthSRP"
|
||||
#define LN_auth_srp "auth-srp"
|
||||
#define NID_auth_srp 1052
|
||||
|
||||
#define SN_auth_null "AuthNULL"
|
||||
#define LN_auth_null "auth-null"
|
||||
#define NID_auth_null 1053
|
||||
|
||||
#define SN_auth_any "AuthANY"
|
||||
#define LN_auth_any "auth-any"
|
||||
#define NID_auth_any 1064
|
||||
|
||||
#define SN_poly1305 "Poly1305"
|
||||
#define LN_poly1305 "poly1305"
|
||||
#define NID_poly1305 1061
|
||||
|
||||
#define SN_siphash "SipHash"
|
||||
#define LN_siphash "siphash"
|
||||
#define NID_siphash 1062
|
||||
|
||||
#define SN_ffdhe2048 "ffdhe2048"
|
||||
#define NID_ffdhe2048 1126
|
||||
|
||||
#define SN_ffdhe3072 "ffdhe3072"
|
||||
#define NID_ffdhe3072 1127
|
||||
|
||||
#define SN_ffdhe4096 "ffdhe4096"
|
||||
#define NID_ffdhe4096 1128
|
||||
|
||||
#define SN_ffdhe6144 "ffdhe6144"
|
||||
#define NID_ffdhe6144 1129
|
||||
|
||||
#define SN_ffdhe8192 "ffdhe8192"
|
||||
#define NID_ffdhe8192 1130
|
||||
|
||||
#define SN_ISO_UA "ISO-UA"
|
||||
#define NID_ISO_UA 1150
|
||||
#define OBJ_ISO_UA OBJ_member_body,804L
|
||||
|
||||
#define SN_ua_pki "ua-pki"
|
||||
#define NID_ua_pki 1151
|
||||
#define OBJ_ua_pki OBJ_ISO_UA,2L,1L,1L,1L
|
||||
|
||||
#define SN_dstu28147 "dstu28147"
|
||||
#define LN_dstu28147 "DSTU Gost 28147-2009"
|
||||
#define NID_dstu28147 1152
|
||||
#define OBJ_dstu28147 OBJ_ua_pki,1L,1L,1L
|
||||
|
||||
#define SN_dstu28147_ofb "dstu28147-ofb"
|
||||
#define LN_dstu28147_ofb "DSTU Gost 28147-2009 OFB mode"
|
||||
#define NID_dstu28147_ofb 1153
|
||||
#define OBJ_dstu28147_ofb OBJ_dstu28147,2L
|
||||
|
||||
#define SN_dstu28147_cfb "dstu28147-cfb"
|
||||
#define LN_dstu28147_cfb "DSTU Gost 28147-2009 CFB mode"
|
||||
#define NID_dstu28147_cfb 1154
|
||||
#define OBJ_dstu28147_cfb OBJ_dstu28147,3L
|
||||
|
||||
#define SN_dstu28147_wrap "dstu28147-wrap"
|
||||
#define LN_dstu28147_wrap "DSTU Gost 28147-2009 key wrap"
|
||||
#define NID_dstu28147_wrap 1155
|
||||
#define OBJ_dstu28147_wrap OBJ_dstu28147,5L
|
||||
|
||||
#define SN_hmacWithDstu34311 "hmacWithDstu34311"
|
||||
#define LN_hmacWithDstu34311 "HMAC DSTU Gost 34311-95"
|
||||
#define NID_hmacWithDstu34311 1156
|
||||
#define OBJ_hmacWithDstu34311 OBJ_ua_pki,1L,1L,2L
|
||||
|
||||
#define SN_dstu34311 "dstu34311"
|
||||
#define LN_dstu34311 "DSTU Gost 34311-95"
|
||||
#define NID_dstu34311 1157
|
||||
#define OBJ_dstu34311 OBJ_ua_pki,1L,2L,1L
|
||||
|
||||
#define SN_dstu4145le "dstu4145le"
|
||||
#define LN_dstu4145le "DSTU 4145-2002 little endian"
|
||||
#define NID_dstu4145le 1158
|
||||
#define OBJ_dstu4145le OBJ_ua_pki,1L,3L,1L,1L
|
||||
|
||||
#define SN_dstu4145be "dstu4145be"
|
||||
#define LN_dstu4145be "DSTU 4145-2002 big endian"
|
||||
#define NID_dstu4145be 1159
|
||||
#define OBJ_dstu4145be OBJ_dstu4145le,1L,1L
|
||||
|
||||
#define SN_uacurve0 "uacurve0"
|
||||
#define LN_uacurve0 "DSTU curve 0"
|
||||
#define NID_uacurve0 1160
|
||||
#define OBJ_uacurve0 OBJ_dstu4145le,2L,0L
|
||||
|
||||
#define SN_uacurve1 "uacurve1"
|
||||
#define LN_uacurve1 "DSTU curve 1"
|
||||
#define NID_uacurve1 1161
|
||||
#define OBJ_uacurve1 OBJ_dstu4145le,2L,1L
|
||||
|
||||
#define SN_uacurve2 "uacurve2"
|
||||
#define LN_uacurve2 "DSTU curve 2"
|
||||
#define NID_uacurve2 1162
|
||||
#define OBJ_uacurve2 OBJ_dstu4145le,2L,2L
|
||||
|
||||
#define SN_uacurve3 "uacurve3"
|
||||
#define LN_uacurve3 "DSTU curve 3"
|
||||
#define NID_uacurve3 1163
|
||||
#define OBJ_uacurve3 OBJ_dstu4145le,2L,3L
|
||||
|
||||
#define SN_uacurve4 "uacurve4"
|
||||
#define LN_uacurve4 "DSTU curve 4"
|
||||
#define NID_uacurve4 1164
|
||||
#define OBJ_uacurve4 OBJ_dstu4145le,2L,4L
|
||||
|
||||
#define SN_uacurve5 "uacurve5"
|
||||
#define LN_uacurve5 "DSTU curve 5"
|
||||
#define NID_uacurve5 1165
|
||||
#define OBJ_uacurve5 OBJ_dstu4145le,2L,5L
|
||||
|
||||
#define SN_uacurve6 "uacurve6"
|
||||
#define LN_uacurve6 "DSTU curve 6"
|
||||
#define NID_uacurve6 1166
|
||||
#define OBJ_uacurve6 OBJ_dstu4145le,2L,6L
|
||||
|
||||
#define SN_uacurve7 "uacurve7"
|
||||
#define LN_uacurve7 "DSTU curve 7"
|
||||
#define NID_uacurve7 1167
|
||||
#define OBJ_uacurve7 OBJ_dstu4145le,2L,7L
|
||||
|
||||
#define SN_uacurve8 "uacurve8"
|
||||
#define LN_uacurve8 "DSTU curve 8"
|
||||
#define NID_uacurve8 1168
|
||||
#define OBJ_uacurve8 OBJ_dstu4145le,2L,8L
|
||||
|
||||
#define SN_uacurve9 "uacurve9"
|
||||
#define LN_uacurve9 "DSTU curve 9"
|
||||
#define NID_uacurve9 1169
|
||||
#define OBJ_uacurve9 OBJ_dstu4145le,2L,9L
|
||||
|
||||
#define SN_aes_128_siv "AES-128-SIV"
|
||||
#define LN_aes_128_siv "aes-128-siv"
|
||||
#define NID_aes_128_siv 1198
|
||||
|
||||
#define SN_aes_192_siv "AES-192-SIV"
|
||||
#define LN_aes_192_siv "aes-192-siv"
|
||||
#define NID_aes_192_siv 1199
|
||||
|
||||
#define SN_aes_256_siv "AES-256-SIV"
|
||||
#define LN_aes_256_siv "aes-256-siv"
|
||||
#define NID_aes_256_siv 1200
|
||||
+23
-12
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -162,20 +162,32 @@ DECLARE_ASN1_DUP_FUNCTION(OCSP_CERTID)
|
||||
OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req);
|
||||
OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req,
|
||||
int maxline);
|
||||
int OCSP_REQ_CTX_nbio(OCSP_REQ_CTX *rctx);
|
||||
# ifndef OPENSSL_NO_SOCK
|
||||
int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx);
|
||||
OCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *io, int maxline);
|
||||
# endif
|
||||
/* The following functions are used only internally */
|
||||
int OCSP_REQ_CTX_nbio(OCSP_REQ_CTX *rctx);
|
||||
OCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *wbio, BIO *rbio,
|
||||
int method_GET, int maxline,
|
||||
unsigned long max_resp_len, int timeout,
|
||||
const char *expected_content_type,
|
||||
int expect_asn1);
|
||||
void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx);
|
||||
void OCSP_set_max_response_length(OCSP_REQ_CTX *rctx, unsigned long len);
|
||||
int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,
|
||||
ASN1_VALUE *val);
|
||||
int OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, ASN1_VALUE **pval,
|
||||
const ASN1_ITEM *it);
|
||||
int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const char *content_type,
|
||||
const ASN1_ITEM *it, ASN1_VALUE *req);
|
||||
# ifndef OPENSSL_NO_SOCK
|
||||
ASN1_VALUE *OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it);
|
||||
# endif
|
||||
BIO *OCSP_REQ_CTX_get0_mem_bio(OCSP_REQ_CTX *rctx);
|
||||
int OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx, const char *op, const char *path);
|
||||
int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req);
|
||||
int OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx,
|
||||
const char *server, const char *port, const char *path);
|
||||
int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx,
|
||||
const char *name, const char *value);
|
||||
/* End of functions used only internally */
|
||||
|
||||
/* TODO: remove this (documented but) meanwhile obsolete function? */
|
||||
int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, const OCSP_REQUEST *req);
|
||||
|
||||
OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, const X509 *subject,
|
||||
const X509 *issuer);
|
||||
@@ -237,8 +249,7 @@ int OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd,
|
||||
int OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs,
|
||||
X509_STORE *store, unsigned long flags);
|
||||
|
||||
int OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath,
|
||||
int *pssl);
|
||||
# define OCSP_parse_url OSSL_HTTP_parse_url /* for backward compatibility */
|
||||
|
||||
int OCSP_id_issuer_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);
|
||||
int OCSP_id_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);
|
||||
@@ -359,5 +370,5 @@ int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
# endif
|
||||
# endif /* !defined OPENSSL_NO_OCSP */
|
||||
#endif
|
||||
@@ -45,11 +45,9 @@ int ERR_load_OCSP_strings(void);
|
||||
# define OCSP_F_OCSP_CHECK_ISSUER 0
|
||||
# define OCSP_F_OCSP_CHECK_VALIDITY 0
|
||||
# define OCSP_F_OCSP_MATCH_ISSUERID 0
|
||||
# define OCSP_F_OCSP_PARSE_URL 0
|
||||
# define OCSP_F_OCSP_REQUEST_SIGN 0
|
||||
# define OCSP_F_OCSP_REQUEST_VERIFY 0
|
||||
# define OCSP_F_OCSP_RESPONSE_GET1_BASIC 0
|
||||
# define OCSP_F_PARSE_HTTP_LINE1 0
|
||||
# endif
|
||||
|
||||
/*
|
||||
@@ -59,7 +57,6 @@ int ERR_load_OCSP_strings(void);
|
||||
# define OCSP_R_DIGEST_ERR 102
|
||||
# define OCSP_R_ERROR_IN_NEXTUPDATE_FIELD 122
|
||||
# define OCSP_R_ERROR_IN_THISUPDATE_FIELD 123
|
||||
# define OCSP_R_ERROR_PARSING_URL 121
|
||||
# define OCSP_R_MISSING_OCSPSIGNING_USAGE 103
|
||||
# define OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE 124
|
||||
# define OCSP_R_NOT_BASIC_RESPONSE 104
|
||||
@@ -71,8 +68,6 @@ int ERR_load_OCSP_strings(void);
|
||||
# define OCSP_R_REQUEST_NOT_SIGNED 128
|
||||
# define OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA 111
|
||||
# define OCSP_R_ROOT_CA_NOT_TRUSTED 112
|
||||
# define OCSP_R_SERVER_RESPONSE_ERROR 114
|
||||
# define OCSP_R_SERVER_RESPONSE_PARSE_ERROR 115
|
||||
# define OCSP_R_SIGNATURE_FAILURE 117
|
||||
# define OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND 118
|
||||
# define OCSP_R_STATUS_EXPIRED 125
|
||||
|
||||
@@ -150,6 +150,10 @@ int RAND_DRBG_set_callbacks(RAND_DRBG *drbg,
|
||||
RAND_DRBG_cleanup_nonce_fn cleanup_nonce);
|
||||
|
||||
|
||||
int RAND_DRBG_set_callback_data(RAND_DRBG *drbg, void *data);
|
||||
|
||||
void *RAND_DRBG_get_callback_data(RAND_DRBG *drbg);
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
|
||||
@@ -87,12 +87,12 @@ OSSL_SERIALIZER_CTX *OSSL_SERIALIZER_CTX_new_by_EVP_PKEY(const EVP_PKEY *pkey,
|
||||
*/
|
||||
# define OSSL_SERIALIZER_PUBKEY_TO_PEM_PQ "format=pem,type=public"
|
||||
# define OSSL_SERIALIZER_PrivateKey_TO_PEM_PQ "format=pem,type=private"
|
||||
# define OSSL_SERIALIZER_Parameters_TO_PEM_PQ "format=pem,type=domainparams"
|
||||
# define OSSL_SERIALIZER_Parameters_TO_PEM_PQ "format=pem,type=parameters"
|
||||
|
||||
/* Corresponding macros for text output */
|
||||
# define OSSL_SERIALIZER_PUBKEY_TO_TEXT_PQ "format=text,type=public"
|
||||
# define OSSL_SERIALIZER_PrivateKey_TO_TEXT_PQ "format=text,type=private"
|
||||
# define OSSL_SERIALIZER_Parameters_TO_TEXT_PQ "format=text,type=domainparams"
|
||||
# define OSSL_SERIALIZER_Parameters_TO_TEXT_PQ "format=text,type=parameters"
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -1270,7 +1270,9 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
|
||||
# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS 69
|
||||
# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP 70
|
||||
# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP 71
|
||||
# define SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB 72
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
# define SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB 72
|
||||
# endif
|
||||
# define SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB 75
|
||||
# define SSL_CTRL_SET_SRP_VERIFY_PARAM_CB 76
|
||||
# define SSL_CTRL_SET_SRP_GIVE_CLIENT_PWD_CB 77
|
||||
@@ -1525,6 +1527,8 @@ void BIO_ssl_shutdown(BIO *ssl_bio);
|
||||
|
||||
__owur int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str);
|
||||
__owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
|
||||
__owur SSL_CTX *SSL_CTX_new_with_libctx(OPENSSL_CTX *libctx, const char *propq,
|
||||
const SSL_METHOD *meth);
|
||||
int SSL_CTX_up_ref(SSL_CTX *ctx);
|
||||
void SSL_CTX_free(SSL_CTX *);
|
||||
__owur long SSL_CTX_set_timeout(SSL_CTX *ctx, long t);
|
||||
|
||||
@@ -1,2478 +0,0 @@
|
||||
/*
|
||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
||||
* Copyright 2005 Nokia. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#ifndef OPENSSL_SSL_H
|
||||
# define OPENSSL_SSL_H
|
||||
# pragma once
|
||||
|
||||
# include <openssl/macros.h>
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
# define HEADER_SSL_H
|
||||
# endif
|
||||
|
||||
# include <openssl/e_os2.h>
|
||||
# include <openssl/opensslconf.h>
|
||||
# include <openssl/comp.h>
|
||||
# include <openssl/bio.h>
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# include <openssl/x509.h>
|
||||
# include <openssl/crypto.h>
|
||||
# include <openssl/buffer.h>
|
||||
# endif
|
||||
# include <openssl/lhash.h>
|
||||
# include <openssl/pem.h>
|
||||
# include <openssl/hmac.h>
|
||||
# include <openssl/async.h>
|
||||
|
||||
# include <openssl/safestack.h>
|
||||
# include <openssl/symhacks.h>
|
||||
# include <openssl/ct.h>
|
||||
# include <openssl/sslerr.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* OpenSSL version number for ASN.1 encoding of the session information */
|
||||
/*-
|
||||
* Version 0 - initial version
|
||||
* Version 1 - added the optional peer certificate
|
||||
*/
|
||||
# define SSL_SESSION_ASN1_VERSION 0x0001
|
||||
|
||||
# define SSL_MAX_SSL_SESSION_ID_LENGTH 32
|
||||
# define SSL_MAX_SID_CTX_LENGTH 32
|
||||
|
||||
# define SSL_MIN_RSA_MODULUS_LENGTH_IN_BYTES (512/8)
|
||||
# define SSL_MAX_KEY_ARG_LENGTH 8
|
||||
# define SSL_MAX_MASTER_KEY_LENGTH 48
|
||||
|
||||
/* The maximum number of encrypt/decrypt pipelines we can support */
|
||||
# define SSL_MAX_PIPELINES 32
|
||||
|
||||
/* text strings for the ciphers */
|
||||
|
||||
/* These are used to specify which ciphers to use and not to use */
|
||||
|
||||
# define SSL_TXT_LOW "LOW"
|
||||
# define SSL_TXT_MEDIUM "MEDIUM"
|
||||
# define SSL_TXT_HIGH "HIGH"
|
||||
# define SSL_TXT_FIPS "FIPS"
|
||||
|
||||
# define SSL_TXT_aNULL "aNULL"
|
||||
# define SSL_TXT_eNULL "eNULL"
|
||||
# define SSL_TXT_NULL "NULL"
|
||||
|
||||
# define SSL_TXT_kRSA "kRSA"
|
||||
# define SSL_TXT_kDHr "kDHr"/* this cipher class has been removed */
|
||||
# define SSL_TXT_kDHd "kDHd"/* this cipher class has been removed */
|
||||
# define SSL_TXT_kDH "kDH"/* this cipher class has been removed */
|
||||
# define SSL_TXT_kEDH "kEDH"/* alias for kDHE */
|
||||
# define SSL_TXT_kDHE "kDHE"
|
||||
# define SSL_TXT_kECDHr "kECDHr"/* this cipher class has been removed */
|
||||
# define SSL_TXT_kECDHe "kECDHe"/* this cipher class has been removed */
|
||||
# define SSL_TXT_kECDH "kECDH"/* this cipher class has been removed */
|
||||
# define SSL_TXT_kEECDH "kEECDH"/* alias for kECDHE */
|
||||
# define SSL_TXT_kECDHE "kECDHE"
|
||||
# define SSL_TXT_kPSK "kPSK"
|
||||
# define SSL_TXT_kRSAPSK "kRSAPSK"
|
||||
# define SSL_TXT_kECDHEPSK "kECDHEPSK"
|
||||
# define SSL_TXT_kDHEPSK "kDHEPSK"
|
||||
# define SSL_TXT_kGOST "kGOST"
|
||||
# define SSL_TXT_kSRP "kSRP"
|
||||
|
||||
# define SSL_TXT_aRSA "aRSA"
|
||||
# define SSL_TXT_aDSS "aDSS"
|
||||
# define SSL_TXT_aDH "aDH"/* this cipher class has been removed */
|
||||
# define SSL_TXT_aECDH "aECDH"/* this cipher class has been removed */
|
||||
# define SSL_TXT_aECDSA "aECDSA"
|
||||
# define SSL_TXT_aPSK "aPSK"
|
||||
# define SSL_TXT_aGOST94 "aGOST94"
|
||||
# define SSL_TXT_aGOST01 "aGOST01"
|
||||
# define SSL_TXT_aGOST12 "aGOST12"
|
||||
# define SSL_TXT_aGOST "aGOST"
|
||||
# define SSL_TXT_aSRP "aSRP"
|
||||
|
||||
# define SSL_TXT_DSS "DSS"
|
||||
# define SSL_TXT_DH "DH"
|
||||
# define SSL_TXT_DHE "DHE"/* same as "kDHE:-ADH" */
|
||||
# define SSL_TXT_EDH "EDH"/* alias for DHE */
|
||||
# define SSL_TXT_ADH "ADH"
|
||||
# define SSL_TXT_RSA "RSA"
|
||||
# define SSL_TXT_ECDH "ECDH"
|
||||
# define SSL_TXT_EECDH "EECDH"/* alias for ECDHE" */
|
||||
# define SSL_TXT_ECDHE "ECDHE"/* same as "kECDHE:-AECDH" */
|
||||
# define SSL_TXT_AECDH "AECDH"
|
||||
# define SSL_TXT_ECDSA "ECDSA"
|
||||
# define SSL_TXT_PSK "PSK"
|
||||
# define SSL_TXT_SRP "SRP"
|
||||
|
||||
# define SSL_TXT_DES "DES"
|
||||
# define SSL_TXT_3DES "3DES"
|
||||
# define SSL_TXT_RC4 "RC4"
|
||||
# define SSL_TXT_RC2 "RC2"
|
||||
# define SSL_TXT_IDEA "IDEA"
|
||||
# define SSL_TXT_SEED "SEED"
|
||||
# define SSL_TXT_AES128 "AES128"
|
||||
# define SSL_TXT_AES256 "AES256"
|
||||
# define SSL_TXT_AES "AES"
|
||||
# define SSL_TXT_AES_GCM "AESGCM"
|
||||
# define SSL_TXT_AES_CCM "AESCCM"
|
||||
# define SSL_TXT_AES_CCM_8 "AESCCM8"
|
||||
# define SSL_TXT_CAMELLIA128 "CAMELLIA128"
|
||||
# define SSL_TXT_CAMELLIA256 "CAMELLIA256"
|
||||
# define SSL_TXT_CAMELLIA "CAMELLIA"
|
||||
# define SSL_TXT_CHACHA20 "CHACHA20"
|
||||
# define SSL_TXT_GOST "GOST89"
|
||||
# define SSL_TXT_ARIA "ARIA"
|
||||
# define SSL_TXT_ARIA_GCM "ARIAGCM"
|
||||
# define SSL_TXT_ARIA128 "ARIA128"
|
||||
# define SSL_TXT_ARIA256 "ARIA256"
|
||||
|
||||
# define SSL_TXT_MD5 "MD5"
|
||||
# define SSL_TXT_SHA1 "SHA1"
|
||||
# define SSL_TXT_SHA "SHA"/* same as "SHA1" */
|
||||
# define SSL_TXT_GOST94 "GOST94"
|
||||
# define SSL_TXT_GOST89MAC "GOST89MAC"
|
||||
# define SSL_TXT_GOST12 "GOST12"
|
||||
# define SSL_TXT_GOST89MAC12 "GOST89MAC12"
|
||||
# define SSL_TXT_SHA256 "SHA256"
|
||||
# define SSL_TXT_SHA384 "SHA384"
|
||||
|
||||
# define SSL_TXT_SSLV3 "SSLv3"
|
||||
# define SSL_TXT_TLSV1 "TLSv1"
|
||||
# define SSL_TXT_TLSV1_1 "TLSv1.1"
|
||||
# define SSL_TXT_TLSV1_2 "TLSv1.2"
|
||||
|
||||
# define SSL_TXT_ALL "ALL"
|
||||
|
||||
/*-
|
||||
* COMPLEMENTOF* definitions. These identifiers are used to (de-select)
|
||||
* ciphers normally not being used.
|
||||
* Example: "RC4" will activate all ciphers using RC4 including ciphers
|
||||
* without authentication, which would normally disabled by DEFAULT (due
|
||||
* the "!ADH" being part of default). Therefore "RC4:!COMPLEMENTOFDEFAULT"
|
||||
* will make sure that it is also disabled in the specific selection.
|
||||
* COMPLEMENTOF* identifiers are portable between version, as adjustments
|
||||
* to the default cipher setup will also be included here.
|
||||
*
|
||||
* COMPLEMENTOFDEFAULT does not experience the same special treatment that
|
||||
* DEFAULT gets, as only selection is being done and no sorting as needed
|
||||
* for DEFAULT.
|
||||
*/
|
||||
# define SSL_TXT_CMPALL "COMPLEMENTOFALL"
|
||||
# define SSL_TXT_CMPDEF "COMPLEMENTOFDEFAULT"
|
||||
|
||||
/*
|
||||
* The following cipher list is used by default. It also is substituted when
|
||||
* an application-defined cipher list string starts with 'DEFAULT'.
|
||||
* This applies to ciphersuites for TLSv1.2 and below.
|
||||
* DEPRECATED IN 3.0.0, in favor of OSSL_default_cipher_list()
|
||||
* Update both macro and function simultaneously
|
||||
*/
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
# define SSL_DEFAULT_CIPHER_LIST "ALL:!COMPLEMENTOFDEFAULT:!eNULL"
|
||||
/*
|
||||
* This is the default set of TLSv1.3 ciphersuites
|
||||
* DEPRECATED IN 3.0.0, in favor of OSSL_default_ciphersuites()
|
||||
* Update both macro and function simultaneously
|
||||
*/
|
||||
# if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305)
|
||||
# define TLS_DEFAULT_CIPHERSUITES "TLS_AES_256_GCM_SHA384:" \
|
||||
"TLS_CHACHA20_POLY1305_SHA256:" \
|
||||
"TLS_AES_128_GCM_SHA256"
|
||||
# else
|
||||
# define TLS_DEFAULT_CIPHERSUITES "TLS_AES_256_GCM_SHA384:" \
|
||||
"TLS_AES_128_GCM_SHA256"
|
||||
# endif
|
||||
# endif
|
||||
/*
|
||||
* As of OpenSSL 1.0.0, ssl_create_cipher_list() in ssl/ssl_ciph.c always
|
||||
* starts with a reasonable order, and all we have to do for DEFAULT is
|
||||
* throwing out anonymous and unencrypted ciphersuites! (The latter are not
|
||||
* actually enabled by ALL, but "ALL:RSA" would enable some of them.)
|
||||
*/
|
||||
|
||||
/* Used in SSL_set_shutdown()/SSL_get_shutdown(); */
|
||||
# define SSL_SENT_SHUTDOWN 1
|
||||
# define SSL_RECEIVED_SHUTDOWN 2
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
# define SSL_FILETYPE_ASN1 X509_FILETYPE_ASN1
|
||||
# define SSL_FILETYPE_PEM X509_FILETYPE_PEM
|
||||
|
||||
/*
|
||||
* This is needed to stop compilers complaining about the 'struct ssl_st *'
|
||||
* function parameters used to prototype callbacks in SSL_CTX.
|
||||
*/
|
||||
typedef struct ssl_st *ssl_crock_st;
|
||||
typedef struct tls_session_ticket_ext_st TLS_SESSION_TICKET_EXT;
|
||||
typedef struct ssl_method_st SSL_METHOD;
|
||||
typedef struct ssl_cipher_st SSL_CIPHER;
|
||||
typedef struct ssl_session_st SSL_SESSION;
|
||||
typedef struct tls_sigalgs_st TLS_SIGALGS;
|
||||
typedef struct ssl_conf_ctx_st SSL_CONF_CTX;
|
||||
typedef struct ssl_comp_st SSL_COMP;
|
||||
|
||||
STACK_OF(SSL_CIPHER);
|
||||
STACK_OF(SSL_COMP);
|
||||
|
||||
/* SRTP protection profiles for use with the use_srtp extension (RFC 5764)*/
|
||||
typedef struct srtp_protection_profile_st {
|
||||
const char *name;
|
||||
unsigned long id;
|
||||
} SRTP_PROTECTION_PROFILE;
|
||||
|
||||
DEFINE_STACK_OF(SRTP_PROTECTION_PROFILE)
|
||||
|
||||
typedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data,
|
||||
int len, void *arg);
|
||||
typedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len,
|
||||
STACK_OF(SSL_CIPHER) *peer_ciphers,
|
||||
const SSL_CIPHER **cipher, void *arg);
|
||||
|
||||
/* Extension context codes */
|
||||
/* This extension is only allowed in TLS */
|
||||
#define SSL_EXT_TLS_ONLY 0x0001
|
||||
/* This extension is only allowed in DTLS */
|
||||
#define SSL_EXT_DTLS_ONLY 0x0002
|
||||
/* Some extensions may be allowed in DTLS but we don't implement them for it */
|
||||
#define SSL_EXT_TLS_IMPLEMENTATION_ONLY 0x0004
|
||||
/* Most extensions are not defined for SSLv3 but EXT_TYPE_renegotiate is */
|
||||
#define SSL_EXT_SSL3_ALLOWED 0x0008
|
||||
/* Extension is only defined for TLS1.2 and below */
|
||||
#define SSL_EXT_TLS1_2_AND_BELOW_ONLY 0x0010
|
||||
/* Extension is only defined for TLS1.3 and above */
|
||||
#define SSL_EXT_TLS1_3_ONLY 0x0020
|
||||
/* Ignore this extension during parsing if we are resuming */
|
||||
#define SSL_EXT_IGNORE_ON_RESUMPTION 0x0040
|
||||
#define SSL_EXT_CLIENT_HELLO 0x0080
|
||||
/* Really means TLS1.2 or below */
|
||||
#define SSL_EXT_TLS1_2_SERVER_HELLO 0x0100
|
||||
#define SSL_EXT_TLS1_3_SERVER_HELLO 0x0200
|
||||
#define SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS 0x0400
|
||||
#define SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST 0x0800
|
||||
#define SSL_EXT_TLS1_3_CERTIFICATE 0x1000
|
||||
#define SSL_EXT_TLS1_3_NEW_SESSION_TICKET 0x2000
|
||||
#define SSL_EXT_TLS1_3_CERTIFICATE_REQUEST 0x4000
|
||||
|
||||
/* Typedefs for handling custom extensions */
|
||||
|
||||
typedef int (*custom_ext_add_cb)(SSL *s, unsigned int ext_type,
|
||||
const unsigned char **out, size_t *outlen,
|
||||
int *al, void *add_arg);
|
||||
|
||||
typedef void (*custom_ext_free_cb)(SSL *s, unsigned int ext_type,
|
||||
const unsigned char *out, void *add_arg);
|
||||
|
||||
typedef int (*custom_ext_parse_cb)(SSL *s, unsigned int ext_type,
|
||||
const unsigned char *in, size_t inlen,
|
||||
int *al, void *parse_arg);
|
||||
|
||||
|
||||
typedef int (*SSL_custom_ext_add_cb_ex)(SSL *s, unsigned int ext_type,
|
||||
unsigned int context,
|
||||
const unsigned char **out,
|
||||
size_t *outlen, X509 *x,
|
||||
size_t chainidx,
|
||||
int *al, void *add_arg);
|
||||
|
||||
typedef void (*SSL_custom_ext_free_cb_ex)(SSL *s, unsigned int ext_type,
|
||||
unsigned int context,
|
||||
const unsigned char *out,
|
||||
void *add_arg);
|
||||
|
||||
typedef int (*SSL_custom_ext_parse_cb_ex)(SSL *s, unsigned int ext_type,
|
||||
unsigned int context,
|
||||
const unsigned char *in,
|
||||
size_t inlen, X509 *x,
|
||||
size_t chainidx,
|
||||
int *al, void *parse_arg);
|
||||
|
||||
/* Typedef for verification callback */
|
||||
typedef int (*SSL_verify_cb)(int preverify_ok, X509_STORE_CTX *x509_ctx);
|
||||
|
||||
/* Typedef for SSL async callback */
|
||||
typedef int (*SSL_async_callback_fn)(SSL *s, void *arg);
|
||||
|
||||
/*
|
||||
* Some values are reserved until OpenSSL 3.0.0 because they were previously
|
||||
* included in SSL_OP_ALL in a 1.1.x release.
|
||||
*/
|
||||
|
||||
/* Disable Extended master secret */
|
||||
# define SSL_OP_NO_EXTENDED_MASTER_SECRET 0x00000001U
|
||||
|
||||
/* Reserved value (until OpenSSL 3.0.0) 0x00000002U */
|
||||
|
||||
/* Allow initial connection to servers that don't support RI */
|
||||
# define SSL_OP_LEGACY_SERVER_CONNECT 0x00000004U
|
||||
|
||||
/* Reserved value (until OpenSSL 3.0.0) 0x00000008U */
|
||||
# define SSL_OP_TLSEXT_PADDING 0x00000010U
|
||||
/* Reserved value (until OpenSSL 3.0.0) 0x00000020U */
|
||||
# define SSL_OP_SAFARI_ECDHE_ECDSA_BUG 0x00000040U
|
||||
/*
|
||||
* Reserved value (until OpenSSL 3.0.0) 0x00000080U
|
||||
* Reserved value (until OpenSSL 3.0.0) 0x00000100U
|
||||
* Reserved value (until OpenSSL 3.0.0) 0x00000200U
|
||||
*/
|
||||
|
||||
/* In TLSv1.3 allow a non-(ec)dhe based kex_mode */
|
||||
# define SSL_OP_ALLOW_NO_DHE_KEX 0x00000400U
|
||||
|
||||
/*
|
||||
* Disable SSL 3.0/TLS 1.0 CBC vulnerability workaround that was added in
|
||||
* OpenSSL 0.9.6d. Usually (depending on the application protocol) the
|
||||
* workaround is not needed. Unfortunately some broken SSL/TLS
|
||||
* implementations cannot handle it at all, which is why we include it in
|
||||
* SSL_OP_ALL. Added in 0.9.6e
|
||||
*/
|
||||
# define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS 0x00000800U
|
||||
|
||||
/* DTLS options */
|
||||
# define SSL_OP_NO_QUERY_MTU 0x00001000U
|
||||
/* Turn on Cookie Exchange (on relevant for servers) */
|
||||
# define SSL_OP_COOKIE_EXCHANGE 0x00002000U
|
||||
/* Don't use RFC4507 ticket extension */
|
||||
# define SSL_OP_NO_TICKET 0x00004000U
|
||||
# ifndef OPENSSL_NO_DTLS1_METHOD
|
||||
/* Use Cisco's "speshul" version of DTLS_BAD_VER
|
||||
* (only with deprecated DTLSv1_client_method()) */
|
||||
# define SSL_OP_CISCO_ANYCONNECT 0x00008000U
|
||||
# endif
|
||||
|
||||
/* As server, disallow session resumption on renegotiation */
|
||||
# define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION 0x00010000U
|
||||
/* Don't use compression even if supported */
|
||||
# define SSL_OP_NO_COMPRESSION 0x00020000U
|
||||
/* Permit unsafe legacy renegotiation */
|
||||
# define SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION 0x00040000U
|
||||
/* Disable encrypt-then-mac */
|
||||
# define SSL_OP_NO_ENCRYPT_THEN_MAC 0x00080000U
|
||||
|
||||
/*
|
||||
* Enable TLSv1.3 Compatibility mode. This is on by default. A future version
|
||||
* of OpenSSL may have this disabled by default.
|
||||
*/
|
||||
# define SSL_OP_ENABLE_MIDDLEBOX_COMPAT 0x00100000U
|
||||
|
||||
/* Prioritize Chacha20Poly1305 when client does.
|
||||
* Modifies SSL_OP_CIPHER_SERVER_PREFERENCE */
|
||||
# define SSL_OP_PRIORITIZE_CHACHA 0x00200000U
|
||||
|
||||
/*
|
||||
* Set on servers to choose the cipher according to the server's preferences
|
||||
*/
|
||||
# define SSL_OP_CIPHER_SERVER_PREFERENCE 0x00400000U
|
||||
/*
|
||||
* If set, a server will allow a client to issue a SSLv3.0 version number as
|
||||
* latest version supported in the premaster secret, even when TLSv1.0
|
||||
* (version 3.1) was announced in the client hello. Normally this is
|
||||
* forbidden to prevent version rollback attacks.
|
||||
*/
|
||||
# define SSL_OP_TLS_ROLLBACK_BUG 0x00800000U
|
||||
|
||||
/*
|
||||
* Switches off automatic TLSv1.3 anti-replay protection for early data. This
|
||||
* is a server-side option only (no effect on the client).
|
||||
*/
|
||||
# define SSL_OP_NO_ANTI_REPLAY 0x01000000U
|
||||
|
||||
# define SSL_OP_NO_SSLv3 0x02000000U
|
||||
# define SSL_OP_NO_TLSv1 0x04000000U
|
||||
# define SSL_OP_NO_TLSv1_2 0x08000000U
|
||||
# define SSL_OP_NO_TLSv1_1 0x10000000U
|
||||
# define SSL_OP_NO_TLSv1_3 0x20000000U
|
||||
|
||||
# define SSL_OP_NO_DTLSv1 0x04000000U
|
||||
# define SSL_OP_NO_DTLSv1_2 0x08000000U
|
||||
|
||||
# define SSL_OP_NO_SSL_MASK (SSL_OP_NO_SSLv3|\
|
||||
SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1|SSL_OP_NO_TLSv1_2|SSL_OP_NO_TLSv1_3)
|
||||
# define SSL_OP_NO_DTLS_MASK (SSL_OP_NO_DTLSv1|SSL_OP_NO_DTLSv1_2)
|
||||
|
||||
/* Disallow all renegotiation */
|
||||
# define SSL_OP_NO_RENEGOTIATION 0x40000000U
|
||||
|
||||
/*
|
||||
* Make server add server-hello extension from early version of cryptopro
|
||||
* draft, when GOST ciphersuite is negotiated. Required for interoperability
|
||||
* with CryptoPro CSP 3.x
|
||||
*/
|
||||
# define SSL_OP_CRYPTOPRO_TLSEXT_BUG 0x80000000U
|
||||
|
||||
/*
|
||||
* SSL_OP_ALL: various bug workarounds that should be rather harmless.
|
||||
* This used to be 0x000FFFFFL before 0.9.7.
|
||||
* This used to be 0x80000BFFU before 1.1.1.
|
||||
*/
|
||||
# define SSL_OP_ALL (SSL_OP_CRYPTOPRO_TLSEXT_BUG|\
|
||||
SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS|\
|
||||
SSL_OP_LEGACY_SERVER_CONNECT|\
|
||||
SSL_OP_TLSEXT_PADDING|\
|
||||
SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
|
||||
|
||||
/* OBSOLETE OPTIONS: retained for compatibility */
|
||||
|
||||
/* Removed from OpenSSL 1.1.0. Was 0x00000001L */
|
||||
/* Related to removed SSLv2. */
|
||||
# define SSL_OP_MICROSOFT_SESS_ID_BUG 0x0
|
||||
/* Removed from OpenSSL 1.1.0. Was 0x00000002L */
|
||||
/* Related to removed SSLv2. */
|
||||
# define SSL_OP_NETSCAPE_CHALLENGE_BUG 0x0
|
||||
/* Removed from OpenSSL 0.9.8q and 1.0.0c. Was 0x00000008L */
|
||||
/* Dead forever, see CVE-2010-4180 */
|
||||
# define SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG 0x0
|
||||
/* Removed from OpenSSL 1.0.1h and 1.0.2. Was 0x00000010L */
|
||||
/* Refers to ancient SSLREF and SSLv2. */
|
||||
# define SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG 0x0
|
||||
/* Removed from OpenSSL 1.1.0. Was 0x00000020 */
|
||||
# define SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER 0x0
|
||||
/* Removed from OpenSSL 0.9.7h and 0.9.8b. Was 0x00000040L */
|
||||
# define SSL_OP_MSIE_SSLV2_RSA_PADDING 0x0
|
||||
/* Removed from OpenSSL 1.1.0. Was 0x00000080 */
|
||||
/* Ancient SSLeay version. */
|
||||
# define SSL_OP_SSLEAY_080_CLIENT_DH_BUG 0x0
|
||||
/* Removed from OpenSSL 1.1.0. Was 0x00000100L */
|
||||
# define SSL_OP_TLS_D5_BUG 0x0
|
||||
/* Removed from OpenSSL 1.1.0. Was 0x00000200L */
|
||||
# define SSL_OP_TLS_BLOCK_PADDING_BUG 0x0
|
||||
/* Removed from OpenSSL 1.1.0. Was 0x00080000L */
|
||||
# define SSL_OP_SINGLE_ECDH_USE 0x0
|
||||
/* Removed from OpenSSL 1.1.0. Was 0x00100000L */
|
||||
# define SSL_OP_SINGLE_DH_USE 0x0
|
||||
/* Removed from OpenSSL 1.0.1k and 1.0.2. Was 0x00200000L */
|
||||
# define SSL_OP_EPHEMERAL_RSA 0x0
|
||||
/* Removed from OpenSSL 1.1.0. Was 0x01000000L */
|
||||
# define SSL_OP_NO_SSLv2 0x0
|
||||
/* Removed from OpenSSL 1.0.1. Was 0x08000000L */
|
||||
# define SSL_OP_PKCS1_CHECK_1 0x0
|
||||
/* Removed from OpenSSL 1.0.1. Was 0x10000000L */
|
||||
# define SSL_OP_PKCS1_CHECK_2 0x0
|
||||
/* Removed from OpenSSL 1.1.0. Was 0x20000000L */
|
||||
# define SSL_OP_NETSCAPE_CA_DN_BUG 0x0
|
||||
/* Removed from OpenSSL 1.1.0. Was 0x40000000L */
|
||||
# define SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG 0x0
|
||||
|
||||
/*
|
||||
* Allow SSL_write(..., n) to return r with 0 < r < n (i.e. report success
|
||||
* when just a single record has been written):
|
||||
*/
|
||||
# define SSL_MODE_ENABLE_PARTIAL_WRITE 0x00000001U
|
||||
/*
|
||||
* Make it possible to retry SSL_write() with changed buffer location (buffer
|
||||
* contents must stay the same!); this is not the default to avoid the
|
||||
* misconception that non-blocking SSL_write() behaves like non-blocking
|
||||
* write():
|
||||
*/
|
||||
# define SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER 0x00000002U
|
||||
/*
|
||||
* Never bother the application with retries if the transport is blocking:
|
||||
*/
|
||||
# define SSL_MODE_AUTO_RETRY 0x00000004U
|
||||
/* Don't attempt to automatically build certificate chain */
|
||||
# define SSL_MODE_NO_AUTO_CHAIN 0x00000008U
|
||||
/*
|
||||
* Save RAM by releasing read and write buffers when they're empty. (SSL3 and
|
||||
* TLS only.) Released buffers are freed.
|
||||
*/
|
||||
# define SSL_MODE_RELEASE_BUFFERS 0x00000010U
|
||||
/*
|
||||
* Send the current time in the Random fields of the ClientHello and
|
||||
* ServerHello records for compatibility with hypothetical implementations
|
||||
* that require it.
|
||||
*/
|
||||
# define SSL_MODE_SEND_CLIENTHELLO_TIME 0x00000020U
|
||||
# define SSL_MODE_SEND_SERVERHELLO_TIME 0x00000040U
|
||||
/*
|
||||
* Send TLS_FALLBACK_SCSV in the ClientHello. To be set only by applications
|
||||
* that reconnect with a downgraded protocol version; see
|
||||
* draft-ietf-tls-downgrade-scsv-00 for details. DO NOT ENABLE THIS if your
|
||||
* application attempts a normal handshake. Only use this in explicit
|
||||
* fallback retries, following the guidance in
|
||||
* draft-ietf-tls-downgrade-scsv-00.
|
||||
*/
|
||||
# define SSL_MODE_SEND_FALLBACK_SCSV 0x00000080U
|
||||
/*
|
||||
* Support Asynchronous operation
|
||||
*/
|
||||
# define SSL_MODE_ASYNC 0x00000100U
|
||||
/*
|
||||
* Don't use the kernel TLS data-path for sending.
|
||||
*/
|
||||
# define SSL_MODE_NO_KTLS_TX 0x00000200U
|
||||
/*
|
||||
* When using DTLS/SCTP, include the terminating zero in the label
|
||||
* used for computing the endpoint-pair shared secret. Required for
|
||||
* interoperability with implementations having this bug like these
|
||||
* older version of OpenSSL:
|
||||
* - OpenSSL 1.0.0 series
|
||||
* - OpenSSL 1.0.1 series
|
||||
* - OpenSSL 1.0.2 series
|
||||
* - OpenSSL 1.1.0 series
|
||||
* - OpenSSL 1.1.1 and 1.1.1a
|
||||
*/
|
||||
# define SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG 0x00000400U
|
||||
/*
|
||||
* Don't use the kernel TLS data-path for receiving.
|
||||
*/
|
||||
# define SSL_MODE_NO_KTLS_RX 0x00000800U
|
||||
|
||||
/* Cert related flags */
|
||||
/*
|
||||
* Many implementations ignore some aspects of the TLS standards such as
|
||||
* enforcing certificate chain algorithms. When this is set we enforce them.
|
||||
*/
|
||||
# define SSL_CERT_FLAG_TLS_STRICT 0x00000001U
|
||||
|
||||
/* Suite B modes, takes same values as certificate verify flags */
|
||||
# define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY 0x10000
|
||||
/* Suite B 192 bit only mode */
|
||||
# define SSL_CERT_FLAG_SUITEB_192_LOS 0x20000
|
||||
/* Suite B 128 bit mode allowing 192 bit algorithms */
|
||||
# define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
|
||||
|
||||
/* Perform all sorts of protocol violations for testing purposes */
|
||||
# define SSL_CERT_FLAG_BROKEN_PROTOCOL 0x10000000
|
||||
|
||||
/* Flags for building certificate chains */
|
||||
/* Treat any existing certificates as untrusted CAs */
|
||||
# define SSL_BUILD_CHAIN_FLAG_UNTRUSTED 0x1
|
||||
/* Don't include root CA in chain */
|
||||
# define SSL_BUILD_CHAIN_FLAG_NO_ROOT 0x2
|
||||
/* Just check certificates already there */
|
||||
# define SSL_BUILD_CHAIN_FLAG_CHECK 0x4
|
||||
/* Ignore verification errors */
|
||||
# define SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR 0x8
|
||||
/* Clear verification errors from queue */
|
||||
# define SSL_BUILD_CHAIN_FLAG_CLEAR_ERROR 0x10
|
||||
|
||||
/* Flags returned by SSL_check_chain */
|
||||
/* Certificate can be used with this session */
|
||||
# define CERT_PKEY_VALID 0x1
|
||||
/* Certificate can also be used for signing */
|
||||
# define CERT_PKEY_SIGN 0x2
|
||||
/* EE certificate signing algorithm OK */
|
||||
# define CERT_PKEY_EE_SIGNATURE 0x10
|
||||
/* CA signature algorithms OK */
|
||||
# define CERT_PKEY_CA_SIGNATURE 0x20
|
||||
/* EE certificate parameters OK */
|
||||
# define CERT_PKEY_EE_PARAM 0x40
|
||||
/* CA certificate parameters OK */
|
||||
# define CERT_PKEY_CA_PARAM 0x80
|
||||
/* Signing explicitly allowed as opposed to SHA1 fallback */
|
||||
# define CERT_PKEY_EXPLICIT_SIGN 0x100
|
||||
/* Client CA issuer names match (always set for server cert) */
|
||||
# define CERT_PKEY_ISSUER_NAME 0x200
|
||||
/* Cert type matches client types (always set for server cert) */
|
||||
# define CERT_PKEY_CERT_TYPE 0x400
|
||||
/* Cert chain suitable to Suite B */
|
||||
# define CERT_PKEY_SUITEB 0x800
|
||||
|
||||
# define SSL_CONF_FLAG_CMDLINE 0x1
|
||||
# define SSL_CONF_FLAG_FILE 0x2
|
||||
# define SSL_CONF_FLAG_CLIENT 0x4
|
||||
# define SSL_CONF_FLAG_SERVER 0x8
|
||||
# define SSL_CONF_FLAG_SHOW_ERRORS 0x10
|
||||
# define SSL_CONF_FLAG_CERTIFICATE 0x20
|
||||
# define SSL_CONF_FLAG_REQUIRE_PRIVATE 0x40
|
||||
/* Configuration value types */
|
||||
# define SSL_CONF_TYPE_UNKNOWN 0x0
|
||||
# define SSL_CONF_TYPE_STRING 0x1
|
||||
# define SSL_CONF_TYPE_FILE 0x2
|
||||
# define SSL_CONF_TYPE_DIR 0x3
|
||||
# define SSL_CONF_TYPE_NONE 0x4
|
||||
# define SSL_CONF_TYPE_STORE 0x5
|
||||
|
||||
/* Maximum length of the application-controlled segment of a a TLSv1.3 cookie */
|
||||
# define SSL_COOKIE_LENGTH 4096
|
||||
|
||||
/*
|
||||
* Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value, they
|
||||
* cannot be used to clear bits.
|
||||
*/
|
||||
|
||||
unsigned long SSL_CTX_get_options(const SSL_CTX *ctx);
|
||||
unsigned long SSL_get_options(const SSL *s);
|
||||
unsigned long SSL_CTX_clear_options(SSL_CTX *ctx, unsigned long op);
|
||||
unsigned long SSL_clear_options(SSL *s, unsigned long op);
|
||||
unsigned long SSL_CTX_set_options(SSL_CTX *ctx, unsigned long op);
|
||||
unsigned long SSL_set_options(SSL *s, unsigned long op);
|
||||
|
||||
# define SSL_CTX_set_mode(ctx,op) \
|
||||
SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL)
|
||||
# define SSL_CTX_clear_mode(ctx,op) \
|
||||
SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_MODE,(op),NULL)
|
||||
# define SSL_CTX_get_mode(ctx) \
|
||||
SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,0,NULL)
|
||||
# define SSL_clear_mode(ssl,op) \
|
||||
SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL)
|
||||
# define SSL_set_mode(ssl,op) \
|
||||
SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)
|
||||
# define SSL_get_mode(ssl) \
|
||||
SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL)
|
||||
# define SSL_set_mtu(ssl, mtu) \
|
||||
SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL)
|
||||
# define DTLS_set_link_mtu(ssl, mtu) \
|
||||
SSL_ctrl((ssl),DTLS_CTRL_SET_LINK_MTU,(mtu),NULL)
|
||||
# define DTLS_get_link_min_mtu(ssl) \
|
||||
SSL_ctrl((ssl),DTLS_CTRL_GET_LINK_MIN_MTU,0,NULL)
|
||||
|
||||
# define SSL_get_secure_renegotiation_support(ssl) \
|
||||
SSL_ctrl((ssl), SSL_CTRL_GET_RI_SUPPORT, 0, NULL)
|
||||
|
||||
# define SSL_CTX_set_cert_flags(ctx,op) \
|
||||
SSL_CTX_ctrl((ctx),SSL_CTRL_CERT_FLAGS,(op),NULL)
|
||||
# define SSL_set_cert_flags(s,op) \
|
||||
SSL_ctrl((s),SSL_CTRL_CERT_FLAGS,(op),NULL)
|
||||
# define SSL_CTX_clear_cert_flags(ctx,op) \
|
||||
SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL)
|
||||
# define SSL_clear_cert_flags(s,op) \
|
||||
SSL_ctrl((s),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL)
|
||||
|
||||
void SSL_CTX_set_msg_callback(SSL_CTX *ctx,
|
||||
void (*cb) (int write_p, int version,
|
||||
int content_type, const void *buf,
|
||||
size_t len, SSL *ssl, void *arg));
|
||||
void SSL_set_msg_callback(SSL *ssl,
|
||||
void (*cb) (int write_p, int version,
|
||||
int content_type, const void *buf,
|
||||
size_t len, SSL *ssl, void *arg));
|
||||
# define SSL_CTX_set_msg_callback_arg(ctx, arg) SSL_CTX_ctrl((ctx), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))
|
||||
# define SSL_set_msg_callback_arg(ssl, arg) SSL_ctrl((ssl), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))
|
||||
|
||||
# define SSL_get_extms_support(s) \
|
||||
SSL_ctrl((s),SSL_CTRL_GET_EXTMS_SUPPORT,0,NULL)
|
||||
|
||||
# ifndef OPENSSL_NO_SRP
|
||||
|
||||
/* see tls_srp.c */
|
||||
__owur int SSL_SRP_CTX_init(SSL *s);
|
||||
__owur int SSL_CTX_SRP_CTX_init(SSL_CTX *ctx);
|
||||
int SSL_SRP_CTX_free(SSL *ctx);
|
||||
int SSL_CTX_SRP_CTX_free(SSL_CTX *ctx);
|
||||
__owur int SSL_srp_server_param_with_username(SSL *s, int *ad);
|
||||
__owur int SRP_Calc_A_param(SSL *s);
|
||||
|
||||
# endif
|
||||
|
||||
/* 100k max cert list */
|
||||
# define SSL_MAX_CERT_LIST_DEFAULT 1024*100
|
||||
|
||||
# define SSL_SESSION_CACHE_MAX_SIZE_DEFAULT (1024*20)
|
||||
|
||||
/*
|
||||
* This callback type is used inside SSL_CTX, SSL, and in the functions that
|
||||
* set them. It is used to override the generation of SSL/TLS session IDs in
|
||||
* a server. Return value should be zero on an error, non-zero to proceed.
|
||||
* Also, callbacks should themselves check if the id they generate is unique
|
||||
* otherwise the SSL handshake will fail with an error - callbacks can do
|
||||
* this using the 'ssl' value they're passed by;
|
||||
* SSL_has_matching_session_id(ssl, id, *id_len) The length value passed in
|
||||
* is set at the maximum size the session ID can be. In SSLv3/TLSv1 it is 32
|
||||
* bytes. The callback can alter this length to be less if desired. It is
|
||||
* also an error for the callback to set the size to zero.
|
||||
*/
|
||||
typedef int (*GEN_SESSION_CB) (SSL *ssl, unsigned char *id,
|
||||
unsigned int *id_len);
|
||||
|
||||
# define SSL_SESS_CACHE_OFF 0x0000
|
||||
# define SSL_SESS_CACHE_CLIENT 0x0001
|
||||
# define SSL_SESS_CACHE_SERVER 0x0002
|
||||
# define SSL_SESS_CACHE_BOTH (SSL_SESS_CACHE_CLIENT|SSL_SESS_CACHE_SERVER)
|
||||
# define SSL_SESS_CACHE_NO_AUTO_CLEAR 0x0080
|
||||
/* enough comments already ... see SSL_CTX_set_session_cache_mode(3) */
|
||||
# define SSL_SESS_CACHE_NO_INTERNAL_LOOKUP 0x0100
|
||||
# define SSL_SESS_CACHE_NO_INTERNAL_STORE 0x0200
|
||||
# define SSL_SESS_CACHE_NO_INTERNAL \
|
||||
(SSL_SESS_CACHE_NO_INTERNAL_LOOKUP|SSL_SESS_CACHE_NO_INTERNAL_STORE)
|
||||
|
||||
LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx);
|
||||
# define SSL_CTX_sess_number(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_NUMBER,0,NULL)
|
||||
# define SSL_CTX_sess_connect(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT,0,NULL)
|
||||
# define SSL_CTX_sess_connect_good(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_GOOD,0,NULL)
|
||||
# define SSL_CTX_sess_connect_renegotiate(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_RENEGOTIATE,0,NULL)
|
||||
# define SSL_CTX_sess_accept(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT,0,NULL)
|
||||
# define SSL_CTX_sess_accept_renegotiate(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_RENEGOTIATE,0,NULL)
|
||||
# define SSL_CTX_sess_accept_good(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_GOOD,0,NULL)
|
||||
# define SSL_CTX_sess_hits(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_HIT,0,NULL)
|
||||
# define SSL_CTX_sess_cb_hits(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CB_HIT,0,NULL)
|
||||
# define SSL_CTX_sess_misses(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_MISSES,0,NULL)
|
||||
# define SSL_CTX_sess_timeouts(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_TIMEOUTS,0,NULL)
|
||||
# define SSL_CTX_sess_cache_full(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CACHE_FULL,0,NULL)
|
||||
|
||||
void SSL_CTX_sess_set_new_cb(SSL_CTX *ctx,
|
||||
int (*new_session_cb) (struct ssl_st *ssl,
|
||||
SSL_SESSION *sess));
|
||||
int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,
|
||||
SSL_SESSION *sess);
|
||||
void SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx,
|
||||
void (*remove_session_cb) (struct ssl_ctx_st
|
||||
*ctx,
|
||||
SSL_SESSION *sess));
|
||||
void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx)) (struct ssl_ctx_st *ctx,
|
||||
SSL_SESSION *sess);
|
||||
void SSL_CTX_sess_set_get_cb(SSL_CTX *ctx,
|
||||
SSL_SESSION *(*get_session_cb) (struct ssl_st
|
||||
*ssl,
|
||||
const unsigned char
|
||||
*data, int len,
|
||||
int *copy));
|
||||
SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,
|
||||
const unsigned char *data,
|
||||
int len, int *copy);
|
||||
void SSL_CTX_set_info_callback(SSL_CTX *ctx,
|
||||
void (*cb) (const SSL *ssl, int type, int val));
|
||||
void (*SSL_CTX_get_info_callback(SSL_CTX *ctx)) (const SSL *ssl, int type,
|
||||
int val);
|
||||
void SSL_CTX_set_client_cert_cb(SSL_CTX *ctx,
|
||||
int (*client_cert_cb) (SSL *ssl, X509 **x509,
|
||||
EVP_PKEY **pkey));
|
||||
int (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx)) (SSL *ssl, X509 **x509,
|
||||
EVP_PKEY **pkey);
|
||||
# ifndef OPENSSL_NO_ENGINE
|
||||
__owur int SSL_CTX_set_client_cert_engine(SSL_CTX *ctx, ENGINE *e);
|
||||
# endif
|
||||
void SSL_CTX_set_cookie_generate_cb(SSL_CTX *ctx,
|
||||
int (*app_gen_cookie_cb) (SSL *ssl,
|
||||
unsigned char
|
||||
*cookie,
|
||||
unsigned int
|
||||
*cookie_len));
|
||||
void SSL_CTX_set_cookie_verify_cb(SSL_CTX *ctx,
|
||||
int (*app_verify_cookie_cb) (SSL *ssl,
|
||||
const unsigned
|
||||
char *cookie,
|
||||
unsigned int
|
||||
cookie_len));
|
||||
|
||||
void SSL_CTX_set_stateless_cookie_generate_cb(
|
||||
SSL_CTX *ctx,
|
||||
int (*gen_stateless_cookie_cb) (SSL *ssl,
|
||||
unsigned char *cookie,
|
||||
size_t *cookie_len));
|
||||
void SSL_CTX_set_stateless_cookie_verify_cb(
|
||||
SSL_CTX *ctx,
|
||||
int (*verify_stateless_cookie_cb) (SSL *ssl,
|
||||
const unsigned char *cookie,
|
||||
size_t cookie_len));
|
||||
# ifndef OPENSSL_NO_NEXTPROTONEG
|
||||
|
||||
typedef int (*SSL_CTX_npn_advertised_cb_func)(SSL *ssl,
|
||||
const unsigned char **out,
|
||||
unsigned int *outlen,
|
||||
void *arg);
|
||||
void SSL_CTX_set_next_protos_advertised_cb(SSL_CTX *s,
|
||||
SSL_CTX_npn_advertised_cb_func cb,
|
||||
void *arg);
|
||||
# define SSL_CTX_set_npn_advertised_cb SSL_CTX_set_next_protos_advertised_cb
|
||||
|
||||
typedef int (*SSL_CTX_npn_select_cb_func)(SSL *s,
|
||||
unsigned char **out,
|
||||
unsigned char *outlen,
|
||||
const unsigned char *in,
|
||||
unsigned int inlen,
|
||||
void *arg);
|
||||
void SSL_CTX_set_next_proto_select_cb(SSL_CTX *s,
|
||||
SSL_CTX_npn_select_cb_func cb,
|
||||
void *arg);
|
||||
# define SSL_CTX_set_npn_select_cb SSL_CTX_set_next_proto_select_cb
|
||||
|
||||
void SSL_get0_next_proto_negotiated(const SSL *s, const unsigned char **data,
|
||||
unsigned *len);
|
||||
# define SSL_get0_npn_negotiated SSL_get0_next_proto_negotiated
|
||||
# endif
|
||||
|
||||
__owur int SSL_select_next_proto(unsigned char **out, unsigned char *outlen,
|
||||
const unsigned char *in, unsigned int inlen,
|
||||
const unsigned char *client,
|
||||
unsigned int client_len);
|
||||
|
||||
# define OPENSSL_NPN_UNSUPPORTED 0
|
||||
# define OPENSSL_NPN_NEGOTIATED 1
|
||||
# define OPENSSL_NPN_NO_OVERLAP 2
|
||||
|
||||
__owur int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const unsigned char *protos,
|
||||
unsigned int protos_len);
|
||||
__owur int SSL_set_alpn_protos(SSL *ssl, const unsigned char *protos,
|
||||
unsigned int protos_len);
|
||||
typedef int (*SSL_CTX_alpn_select_cb_func)(SSL *ssl,
|
||||
const unsigned char **out,
|
||||
unsigned char *outlen,
|
||||
const unsigned char *in,
|
||||
unsigned int inlen,
|
||||
void *arg);
|
||||
void SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx,
|
||||
SSL_CTX_alpn_select_cb_func cb,
|
||||
void *arg);
|
||||
void SSL_get0_alpn_selected(const SSL *ssl, const unsigned char **data,
|
||||
unsigned int *len);
|
||||
|
||||
# ifndef OPENSSL_NO_PSK
|
||||
/*
|
||||
* the maximum length of the buffer given to callbacks containing the
|
||||
* resulting identity/psk
|
||||
*/
|
||||
# define PSK_MAX_IDENTITY_LEN 128
|
||||
# define PSK_MAX_PSK_LEN 256
|
||||
typedef unsigned int (*SSL_psk_client_cb_func)(SSL *ssl,
|
||||
const char *hint,
|
||||
char *identity,
|
||||
unsigned int max_identity_len,
|
||||
unsigned char *psk,
|
||||
unsigned int max_psk_len);
|
||||
void SSL_CTX_set_psk_client_callback(SSL_CTX *ctx, SSL_psk_client_cb_func cb);
|
||||
void SSL_set_psk_client_callback(SSL *ssl, SSL_psk_client_cb_func cb);
|
||||
|
||||
typedef unsigned int (*SSL_psk_server_cb_func)(SSL *ssl,
|
||||
const char *identity,
|
||||
unsigned char *psk,
|
||||
unsigned int max_psk_len);
|
||||
void SSL_CTX_set_psk_server_callback(SSL_CTX *ctx, SSL_psk_server_cb_func cb);
|
||||
void SSL_set_psk_server_callback(SSL *ssl, SSL_psk_server_cb_func cb);
|
||||
|
||||
__owur int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx, const char *identity_hint);
|
||||
__owur int SSL_use_psk_identity_hint(SSL *s, const char *identity_hint);
|
||||
const char *SSL_get_psk_identity_hint(const SSL *s);
|
||||
const char *SSL_get_psk_identity(const SSL *s);
|
||||
# endif
|
||||
|
||||
typedef int (*SSL_psk_find_session_cb_func)(SSL *ssl,
|
||||
const unsigned char *identity,
|
||||
size_t identity_len,
|
||||
SSL_SESSION **sess);
|
||||
typedef int (*SSL_psk_use_session_cb_func)(SSL *ssl, const EVP_MD *md,
|
||||
const unsigned char **id,
|
||||
size_t *idlen,
|
||||
SSL_SESSION **sess);
|
||||
|
||||
void SSL_set_psk_find_session_callback(SSL *s, SSL_psk_find_session_cb_func cb);
|
||||
void SSL_CTX_set_psk_find_session_callback(SSL_CTX *ctx,
|
||||
SSL_psk_find_session_cb_func cb);
|
||||
void SSL_set_psk_use_session_callback(SSL *s, SSL_psk_use_session_cb_func cb);
|
||||
void SSL_CTX_set_psk_use_session_callback(SSL_CTX *ctx,
|
||||
SSL_psk_use_session_cb_func cb);
|
||||
|
||||
/* Register callbacks to handle custom TLS Extensions for client or server. */
|
||||
|
||||
__owur int SSL_CTX_has_client_custom_ext(const SSL_CTX *ctx,
|
||||
unsigned int ext_type);
|
||||
|
||||
__owur int SSL_CTX_add_client_custom_ext(SSL_CTX *ctx,
|
||||
unsigned int ext_type,
|
||||
custom_ext_add_cb add_cb,
|
||||
custom_ext_free_cb free_cb,
|
||||
void *add_arg,
|
||||
custom_ext_parse_cb parse_cb,
|
||||
void *parse_arg);
|
||||
|
||||
__owur int SSL_CTX_add_server_custom_ext(SSL_CTX *ctx,
|
||||
unsigned int ext_type,
|
||||
custom_ext_add_cb add_cb,
|
||||
custom_ext_free_cb free_cb,
|
||||
void *add_arg,
|
||||
custom_ext_parse_cb parse_cb,
|
||||
void *parse_arg);
|
||||
|
||||
__owur int SSL_CTX_add_custom_ext(SSL_CTX *ctx, unsigned int ext_type,
|
||||
unsigned int context,
|
||||
SSL_custom_ext_add_cb_ex add_cb,
|
||||
SSL_custom_ext_free_cb_ex free_cb,
|
||||
void *add_arg,
|
||||
SSL_custom_ext_parse_cb_ex parse_cb,
|
||||
void *parse_arg);
|
||||
|
||||
__owur int SSL_extension_supported(unsigned int ext_type);
|
||||
|
||||
# define SSL_NOTHING 1
|
||||
# define SSL_WRITING 2
|
||||
# define SSL_READING 3
|
||||
# define SSL_X509_LOOKUP 4
|
||||
# define SSL_ASYNC_PAUSED 5
|
||||
# define SSL_ASYNC_NO_JOBS 6
|
||||
# define SSL_CLIENT_HELLO_CB 7
|
||||
|
||||
/* These will only be used when doing non-blocking IO */
|
||||
# define SSL_want_nothing(s) (SSL_want(s) == SSL_NOTHING)
|
||||
# define SSL_want_read(s) (SSL_want(s) == SSL_READING)
|
||||
# define SSL_want_write(s) (SSL_want(s) == SSL_WRITING)
|
||||
# define SSL_want_x509_lookup(s) (SSL_want(s) == SSL_X509_LOOKUP)
|
||||
# define SSL_want_async(s) (SSL_want(s) == SSL_ASYNC_PAUSED)
|
||||
# define SSL_want_async_job(s) (SSL_want(s) == SSL_ASYNC_NO_JOBS)
|
||||
# define SSL_want_client_hello_cb(s) (SSL_want(s) == SSL_CLIENT_HELLO_CB)
|
||||
|
||||
# define SSL_MAC_FLAG_READ_MAC_STREAM 1
|
||||
# define SSL_MAC_FLAG_WRITE_MAC_STREAM 2
|
||||
|
||||
/*
|
||||
* A callback for logging out TLS key material. This callback should log out
|
||||
* |line| followed by a newline.
|
||||
*/
|
||||
typedef void (*SSL_CTX_keylog_cb_func)(const SSL *ssl, const char *line);
|
||||
|
||||
/*
|
||||
* SSL_CTX_set_keylog_callback configures a callback to log key material. This
|
||||
* is intended for debugging use with tools like Wireshark. The cb function
|
||||
* should log line followed by a newline.
|
||||
*/
|
||||
void SSL_CTX_set_keylog_callback(SSL_CTX *ctx, SSL_CTX_keylog_cb_func cb);
|
||||
|
||||
/*
|
||||
* SSL_CTX_get_keylog_callback returns the callback configured by
|
||||
* SSL_CTX_set_keylog_callback.
|
||||
*/
|
||||
SSL_CTX_keylog_cb_func SSL_CTX_get_keylog_callback(const SSL_CTX *ctx);
|
||||
|
||||
int SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data);
|
||||
uint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx);
|
||||
int SSL_set_max_early_data(SSL *s, uint32_t max_early_data);
|
||||
uint32_t SSL_get_max_early_data(const SSL *s);
|
||||
int SSL_CTX_set_recv_max_early_data(SSL_CTX *ctx, uint32_t recv_max_early_data);
|
||||
uint32_t SSL_CTX_get_recv_max_early_data(const SSL_CTX *ctx);
|
||||
int SSL_set_recv_max_early_data(SSL *s, uint32_t recv_max_early_data);
|
||||
uint32_t SSL_get_recv_max_early_data(const SSL *s);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
# include <openssl/ssl2.h>
|
||||
# include <openssl/ssl3.h>
|
||||
# include <openssl/tls1.h> /* This is mostly sslv3 with a few tweaks */
|
||||
# include <openssl/dtls1.h> /* Datagram TLS */
|
||||
# include <openssl/srtp.h> /* Support for the use_srtp extension */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* These need to be after the above set of includes due to a compiler bug
|
||||
* in VisualStudio 2015
|
||||
*/
|
||||
DEFINE_STACK_OF_CONST(SSL_CIPHER)
|
||||
DEFINE_STACK_OF(SSL_COMP)
|
||||
|
||||
/* compatibility */
|
||||
# define SSL_set_app_data(s,arg) (SSL_set_ex_data(s,0,(char *)(arg)))
|
||||
# define SSL_get_app_data(s) (SSL_get_ex_data(s,0))
|
||||
# define SSL_SESSION_set_app_data(s,a) (SSL_SESSION_set_ex_data(s,0, \
|
||||
(char *)(a)))
|
||||
# define SSL_SESSION_get_app_data(s) (SSL_SESSION_get_ex_data(s,0))
|
||||
# define SSL_CTX_get_app_data(ctx) (SSL_CTX_get_ex_data(ctx,0))
|
||||
# define SSL_CTX_set_app_data(ctx,arg) (SSL_CTX_set_ex_data(ctx,0, \
|
||||
(char *)(arg)))
|
||||
DEPRECATEDIN_1_1_0(void SSL_set_debug(SSL *s, int debug))
|
||||
|
||||
/* TLSv1.3 KeyUpdate message types */
|
||||
/* -1 used so that this is an invalid value for the on-the-wire protocol */
|
||||
#define SSL_KEY_UPDATE_NONE -1
|
||||
/* Values as defined for the on-the-wire protocol */
|
||||
#define SSL_KEY_UPDATE_NOT_REQUESTED 0
|
||||
#define SSL_KEY_UPDATE_REQUESTED 1
|
||||
|
||||
/*
|
||||
* The valid handshake states (one for each type message sent and one for each
|
||||
* type of message received). There are also two "special" states:
|
||||
* TLS = TLS or DTLS state
|
||||
* DTLS = DTLS specific state
|
||||
* CR/SR = Client Read/Server Read
|
||||
* CW/SW = Client Write/Server Write
|
||||
*
|
||||
* The "special" states are:
|
||||
* TLS_ST_BEFORE = No handshake has been initiated yet
|
||||
* TLS_ST_OK = A handshake has been successfully completed
|
||||
*/
|
||||
typedef enum {
|
||||
TLS_ST_BEFORE,
|
||||
TLS_ST_OK,
|
||||
DTLS_ST_CR_HELLO_VERIFY_REQUEST,
|
||||
TLS_ST_CR_SRVR_HELLO,
|
||||
TLS_ST_CR_CERT,
|
||||
TLS_ST_CR_CERT_STATUS,
|
||||
TLS_ST_CR_KEY_EXCH,
|
||||
TLS_ST_CR_CERT_REQ,
|
||||
TLS_ST_CR_SRVR_DONE,
|
||||
TLS_ST_CR_SESSION_TICKET,
|
||||
TLS_ST_CR_CHANGE,
|
||||
TLS_ST_CR_FINISHED,
|
||||
TLS_ST_CW_CLNT_HELLO,
|
||||
TLS_ST_CW_CERT,
|
||||
TLS_ST_CW_KEY_EXCH,
|
||||
TLS_ST_CW_CERT_VRFY,
|
||||
TLS_ST_CW_CHANGE,
|
||||
TLS_ST_CW_NEXT_PROTO,
|
||||
TLS_ST_CW_FINISHED,
|
||||
TLS_ST_SW_HELLO_REQ,
|
||||
TLS_ST_SR_CLNT_HELLO,
|
||||
DTLS_ST_SW_HELLO_VERIFY_REQUEST,
|
||||
TLS_ST_SW_SRVR_HELLO,
|
||||
TLS_ST_SW_CERT,
|
||||
TLS_ST_SW_KEY_EXCH,
|
||||
TLS_ST_SW_CERT_REQ,
|
||||
TLS_ST_SW_SRVR_DONE,
|
||||
TLS_ST_SR_CERT,
|
||||
TLS_ST_SR_KEY_EXCH,
|
||||
TLS_ST_SR_CERT_VRFY,
|
||||
TLS_ST_SR_NEXT_PROTO,
|
||||
TLS_ST_SR_CHANGE,
|
||||
TLS_ST_SR_FINISHED,
|
||||
TLS_ST_SW_SESSION_TICKET,
|
||||
TLS_ST_SW_CERT_STATUS,
|
||||
TLS_ST_SW_CHANGE,
|
||||
TLS_ST_SW_FINISHED,
|
||||
TLS_ST_SW_ENCRYPTED_EXTENSIONS,
|
||||
TLS_ST_CR_ENCRYPTED_EXTENSIONS,
|
||||
TLS_ST_CR_CERT_VRFY,
|
||||
TLS_ST_SW_CERT_VRFY,
|
||||
TLS_ST_CR_HELLO_REQ,
|
||||
TLS_ST_SW_KEY_UPDATE,
|
||||
TLS_ST_CW_KEY_UPDATE,
|
||||
TLS_ST_SR_KEY_UPDATE,
|
||||
TLS_ST_CR_KEY_UPDATE,
|
||||
TLS_ST_EARLY_DATA,
|
||||
TLS_ST_PENDING_EARLY_DATA_END,
|
||||
TLS_ST_CW_END_OF_EARLY_DATA,
|
||||
TLS_ST_SR_END_OF_EARLY_DATA
|
||||
} OSSL_HANDSHAKE_STATE;
|
||||
|
||||
/*
|
||||
* Most of the following state values are no longer used and are defined to be
|
||||
* the closest equivalent value in the current state machine code. Not all
|
||||
* defines have an equivalent and are set to a dummy value (-1). SSL_ST_CONNECT
|
||||
* and SSL_ST_ACCEPT are still in use in the definition of SSL_CB_ACCEPT_LOOP,
|
||||
* SSL_CB_ACCEPT_EXIT, SSL_CB_CONNECT_LOOP and SSL_CB_CONNECT_EXIT.
|
||||
*/
|
||||
|
||||
# define SSL_ST_CONNECT 0x1000
|
||||
# define SSL_ST_ACCEPT 0x2000
|
||||
|
||||
# define SSL_ST_MASK 0x0FFF
|
||||
|
||||
# define SSL_CB_LOOP 0x01
|
||||
# define SSL_CB_EXIT 0x02
|
||||
# define SSL_CB_READ 0x04
|
||||
# define SSL_CB_WRITE 0x08
|
||||
# define SSL_CB_ALERT 0x4000/* used in callback */
|
||||
# define SSL_CB_READ_ALERT (SSL_CB_ALERT|SSL_CB_READ)
|
||||
# define SSL_CB_WRITE_ALERT (SSL_CB_ALERT|SSL_CB_WRITE)
|
||||
# define SSL_CB_ACCEPT_LOOP (SSL_ST_ACCEPT|SSL_CB_LOOP)
|
||||
# define SSL_CB_ACCEPT_EXIT (SSL_ST_ACCEPT|SSL_CB_EXIT)
|
||||
# define SSL_CB_CONNECT_LOOP (SSL_ST_CONNECT|SSL_CB_LOOP)
|
||||
# define SSL_CB_CONNECT_EXIT (SSL_ST_CONNECT|SSL_CB_EXIT)
|
||||
# define SSL_CB_HANDSHAKE_START 0x10
|
||||
# define SSL_CB_HANDSHAKE_DONE 0x20
|
||||
|
||||
/* Is the SSL_connection established? */
|
||||
# define SSL_in_connect_init(a) (SSL_in_init(a) && !SSL_is_server(a))
|
||||
# define SSL_in_accept_init(a) (SSL_in_init(a) && SSL_is_server(a))
|
||||
int SSL_in_init(const SSL *s);
|
||||
int SSL_in_before(const SSL *s);
|
||||
int SSL_is_init_finished(const SSL *s);
|
||||
|
||||
/*
|
||||
* The following 3 states are kept in ssl->rlayer.rstate when reads fail, you
|
||||
* should not need these
|
||||
*/
|
||||
# define SSL_ST_READ_HEADER 0xF0
|
||||
# define SSL_ST_READ_BODY 0xF1
|
||||
# define SSL_ST_READ_DONE 0xF2
|
||||
|
||||
/*-
|
||||
* Obtain latest Finished message
|
||||
* -- that we sent (SSL_get_finished)
|
||||
* -- that we expected from peer (SSL_get_peer_finished).
|
||||
* Returns length (0 == no Finished so far), copies up to 'count' bytes.
|
||||
*/
|
||||
size_t SSL_get_finished(const SSL *s, void *buf, size_t count);
|
||||
size_t SSL_get_peer_finished(const SSL *s, void *buf, size_t count);
|
||||
|
||||
/*
|
||||
* use either SSL_VERIFY_NONE or SSL_VERIFY_PEER, the last 3 options are
|
||||
* 'ored' with SSL_VERIFY_PEER if they are desired
|
||||
*/
|
||||
# define SSL_VERIFY_NONE 0x00
|
||||
# define SSL_VERIFY_PEER 0x01
|
||||
# define SSL_VERIFY_FAIL_IF_NO_PEER_CERT 0x02
|
||||
# define SSL_VERIFY_CLIENT_ONCE 0x04
|
||||
# define SSL_VERIFY_POST_HANDSHAKE 0x08
|
||||
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# define OpenSSL_add_ssl_algorithms() SSL_library_init()
|
||||
# define SSLeay_add_ssl_algorithms() SSL_library_init()
|
||||
# endif
|
||||
|
||||
/* More backward compatibility */
|
||||
# define SSL_get_cipher(s) \
|
||||
SSL_CIPHER_get_name(SSL_get_current_cipher(s))
|
||||
# define SSL_get_cipher_bits(s,np) \
|
||||
SSL_CIPHER_get_bits(SSL_get_current_cipher(s),np)
|
||||
# define SSL_get_cipher_version(s) \
|
||||
SSL_CIPHER_get_version(SSL_get_current_cipher(s))
|
||||
# define SSL_get_cipher_name(s) \
|
||||
SSL_CIPHER_get_name(SSL_get_current_cipher(s))
|
||||
# define SSL_get_time(a) SSL_SESSION_get_time(a)
|
||||
# define SSL_set_time(a,b) SSL_SESSION_set_time((a),(b))
|
||||
# define SSL_get_timeout(a) SSL_SESSION_get_timeout(a)
|
||||
# define SSL_set_timeout(a,b) SSL_SESSION_set_timeout((a),(b))
|
||||
|
||||
# define d2i_SSL_SESSION_bio(bp,s_id) ASN1_d2i_bio_of(SSL_SESSION,SSL_SESSION_new,d2i_SSL_SESSION,bp,s_id)
|
||||
# define i2d_SSL_SESSION_bio(bp,s_id) ASN1_i2d_bio_of(SSL_SESSION,i2d_SSL_SESSION,bp,s_id)
|
||||
|
||||
DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
|
||||
# define SSL_AD_REASON_OFFSET 1000/* offset to get SSL_R_... value
|
||||
* from SSL_AD_... */
|
||||
/* These alert types are for SSLv3 and TLSv1 */
|
||||
# define SSL_AD_CLOSE_NOTIFY SSL3_AD_CLOSE_NOTIFY
|
||||
/* fatal */
|
||||
# define SSL_AD_UNEXPECTED_MESSAGE SSL3_AD_UNEXPECTED_MESSAGE
|
||||
/* fatal */
|
||||
# define SSL_AD_BAD_RECORD_MAC SSL3_AD_BAD_RECORD_MAC
|
||||
# define SSL_AD_DECRYPTION_FAILED TLS1_AD_DECRYPTION_FAILED
|
||||
# define SSL_AD_RECORD_OVERFLOW TLS1_AD_RECORD_OVERFLOW
|
||||
/* fatal */
|
||||
# define SSL_AD_DECOMPRESSION_FAILURE SSL3_AD_DECOMPRESSION_FAILURE
|
||||
/* fatal */
|
||||
# define SSL_AD_HANDSHAKE_FAILURE SSL3_AD_HANDSHAKE_FAILURE
|
||||
/* Not for TLS */
|
||||
# define SSL_AD_NO_CERTIFICATE SSL3_AD_NO_CERTIFICATE
|
||||
# define SSL_AD_BAD_CERTIFICATE SSL3_AD_BAD_CERTIFICATE
|
||||
# define SSL_AD_UNSUPPORTED_CERTIFICATE SSL3_AD_UNSUPPORTED_CERTIFICATE
|
||||
# define SSL_AD_CERTIFICATE_REVOKED SSL3_AD_CERTIFICATE_REVOKED
|
||||
# define SSL_AD_CERTIFICATE_EXPIRED SSL3_AD_CERTIFICATE_EXPIRED
|
||||
# define SSL_AD_CERTIFICATE_UNKNOWN SSL3_AD_CERTIFICATE_UNKNOWN
|
||||
/* fatal */
|
||||
# define SSL_AD_ILLEGAL_PARAMETER SSL3_AD_ILLEGAL_PARAMETER
|
||||
/* fatal */
|
||||
# define SSL_AD_UNKNOWN_CA TLS1_AD_UNKNOWN_CA
|
||||
/* fatal */
|
||||
# define SSL_AD_ACCESS_DENIED TLS1_AD_ACCESS_DENIED
|
||||
/* fatal */
|
||||
# define SSL_AD_DECODE_ERROR TLS1_AD_DECODE_ERROR
|
||||
# define SSL_AD_DECRYPT_ERROR TLS1_AD_DECRYPT_ERROR
|
||||
/* fatal */
|
||||
# define SSL_AD_EXPORT_RESTRICTION TLS1_AD_EXPORT_RESTRICTION
|
||||
/* fatal */
|
||||
# define SSL_AD_PROTOCOL_VERSION TLS1_AD_PROTOCOL_VERSION
|
||||
/* fatal */
|
||||
# define SSL_AD_INSUFFICIENT_SECURITY TLS1_AD_INSUFFICIENT_SECURITY
|
||||
/* fatal */
|
||||
# define SSL_AD_INTERNAL_ERROR TLS1_AD_INTERNAL_ERROR
|
||||
# define SSL_AD_USER_CANCELLED TLS1_AD_USER_CANCELLED
|
||||
# define SSL_AD_NO_RENEGOTIATION TLS1_AD_NO_RENEGOTIATION
|
||||
# define SSL_AD_MISSING_EXTENSION TLS13_AD_MISSING_EXTENSION
|
||||
# define SSL_AD_CERTIFICATE_REQUIRED TLS13_AD_CERTIFICATE_REQUIRED
|
||||
# define SSL_AD_UNSUPPORTED_EXTENSION TLS1_AD_UNSUPPORTED_EXTENSION
|
||||
# define SSL_AD_CERTIFICATE_UNOBTAINABLE TLS1_AD_CERTIFICATE_UNOBTAINABLE
|
||||
# define SSL_AD_UNRECOGNIZED_NAME TLS1_AD_UNRECOGNIZED_NAME
|
||||
# define SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE
|
||||
# define SSL_AD_BAD_CERTIFICATE_HASH_VALUE TLS1_AD_BAD_CERTIFICATE_HASH_VALUE
|
||||
/* fatal */
|
||||
# define SSL_AD_UNKNOWN_PSK_IDENTITY TLS1_AD_UNKNOWN_PSK_IDENTITY
|
||||
/* fatal */
|
||||
# define SSL_AD_INAPPROPRIATE_FALLBACK TLS1_AD_INAPPROPRIATE_FALLBACK
|
||||
# define SSL_AD_NO_APPLICATION_PROTOCOL TLS1_AD_NO_APPLICATION_PROTOCOL
|
||||
# define SSL_ERROR_NONE 0
|
||||
# define SSL_ERROR_SSL 1
|
||||
# define SSL_ERROR_WANT_READ 2
|
||||
# define SSL_ERROR_WANT_WRITE 3
|
||||
# define SSL_ERROR_WANT_X509_LOOKUP 4
|
||||
# define SSL_ERROR_SYSCALL 5/* look at error stack/return
|
||||
* value/errno */
|
||||
# define SSL_ERROR_ZERO_RETURN 6
|
||||
# define SSL_ERROR_WANT_CONNECT 7
|
||||
# define SSL_ERROR_WANT_ACCEPT 8
|
||||
# define SSL_ERROR_WANT_ASYNC 9
|
||||
# define SSL_ERROR_WANT_ASYNC_JOB 10
|
||||
# define SSL_ERROR_WANT_CLIENT_HELLO_CB 11
|
||||
# define SSL_CTRL_SET_TMP_DH 3
|
||||
# define SSL_CTRL_SET_TMP_ECDH 4
|
||||
# define SSL_CTRL_SET_TMP_DH_CB 6
|
||||
# define SSL_CTRL_GET_CLIENT_CERT_REQUEST 9
|
||||
# define SSL_CTRL_GET_NUM_RENEGOTIATIONS 10
|
||||
# define SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS 11
|
||||
# define SSL_CTRL_GET_TOTAL_RENEGOTIATIONS 12
|
||||
# define SSL_CTRL_GET_FLAGS 13
|
||||
# define SSL_CTRL_EXTRA_CHAIN_CERT 14
|
||||
# define SSL_CTRL_SET_MSG_CALLBACK 15
|
||||
# define SSL_CTRL_SET_MSG_CALLBACK_ARG 16
|
||||
/* only applies to datagram connections */
|
||||
# define SSL_CTRL_SET_MTU 17
|
||||
/* Stats */
|
||||
# define SSL_CTRL_SESS_NUMBER 20
|
||||
# define SSL_CTRL_SESS_CONNECT 21
|
||||
# define SSL_CTRL_SESS_CONNECT_GOOD 22
|
||||
# define SSL_CTRL_SESS_CONNECT_RENEGOTIATE 23
|
||||
# define SSL_CTRL_SESS_ACCEPT 24
|
||||
# define SSL_CTRL_SESS_ACCEPT_GOOD 25
|
||||
# define SSL_CTRL_SESS_ACCEPT_RENEGOTIATE 26
|
||||
# define SSL_CTRL_SESS_HIT 27
|
||||
# define SSL_CTRL_SESS_CB_HIT 28
|
||||
# define SSL_CTRL_SESS_MISSES 29
|
||||
# define SSL_CTRL_SESS_TIMEOUTS 30
|
||||
# define SSL_CTRL_SESS_CACHE_FULL 31
|
||||
# define SSL_CTRL_MODE 33
|
||||
# define SSL_CTRL_GET_READ_AHEAD 40
|
||||
# define SSL_CTRL_SET_READ_AHEAD 41
|
||||
# define SSL_CTRL_SET_SESS_CACHE_SIZE 42
|
||||
# define SSL_CTRL_GET_SESS_CACHE_SIZE 43
|
||||
# define SSL_CTRL_SET_SESS_CACHE_MODE 44
|
||||
# define SSL_CTRL_GET_SESS_CACHE_MODE 45
|
||||
# define SSL_CTRL_GET_MAX_CERT_LIST 50
|
||||
# define SSL_CTRL_SET_MAX_CERT_LIST 51
|
||||
# define SSL_CTRL_SET_MAX_SEND_FRAGMENT 52
|
||||
/* see tls1.h for macros based on these */
|
||||
# define SSL_CTRL_SET_TLSEXT_SERVERNAME_CB 53
|
||||
# define SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG 54
|
||||
# define SSL_CTRL_SET_TLSEXT_HOSTNAME 55
|
||||
# define SSL_CTRL_SET_TLSEXT_DEBUG_CB 56
|
||||
# define SSL_CTRL_SET_TLSEXT_DEBUG_ARG 57
|
||||
# define SSL_CTRL_GET_TLSEXT_TICKET_KEYS 58
|
||||
# define SSL_CTRL_SET_TLSEXT_TICKET_KEYS 59
|
||||
/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT 60 */
|
||||
/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB 61 */
|
||||
/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB_ARG 62 */
|
||||
# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB 63
|
||||
# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG 64
|
||||
# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE 65
|
||||
# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS 66
|
||||
# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS 67
|
||||
# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS 68
|
||||
# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS 69
|
||||
# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP 70
|
||||
# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP 71
|
||||
# define SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB 72
|
||||
# define SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB 75
|
||||
# define SSL_CTRL_SET_SRP_VERIFY_PARAM_CB 76
|
||||
# define SSL_CTRL_SET_SRP_GIVE_CLIENT_PWD_CB 77
|
||||
# define SSL_CTRL_SET_SRP_ARG 78
|
||||
# define SSL_CTRL_SET_TLS_EXT_SRP_USERNAME 79
|
||||
# define SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH 80
|
||||
# define SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD 81
|
||||
# define DTLS_CTRL_GET_TIMEOUT 73
|
||||
# define DTLS_CTRL_HANDLE_TIMEOUT 74
|
||||
# define SSL_CTRL_GET_RI_SUPPORT 76
|
||||
# define SSL_CTRL_CLEAR_MODE 78
|
||||
# define SSL_CTRL_SET_NOT_RESUMABLE_SESS_CB 79
|
||||
# define SSL_CTRL_GET_EXTRA_CHAIN_CERTS 82
|
||||
# define SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS 83
|
||||
# define SSL_CTRL_CHAIN 88
|
||||
# define SSL_CTRL_CHAIN_CERT 89
|
||||
# define SSL_CTRL_GET_GROUPS 90
|
||||
# define SSL_CTRL_SET_GROUPS 91
|
||||
# define SSL_CTRL_SET_GROUPS_LIST 92
|
||||
# define SSL_CTRL_GET_SHARED_GROUP 93
|
||||
# define SSL_CTRL_SET_SIGALGS 97
|
||||
# define SSL_CTRL_SET_SIGALGS_LIST 98
|
||||
# define SSL_CTRL_CERT_FLAGS 99
|
||||
# define SSL_CTRL_CLEAR_CERT_FLAGS 100
|
||||
# define SSL_CTRL_SET_CLIENT_SIGALGS 101
|
||||
# define SSL_CTRL_SET_CLIENT_SIGALGS_LIST 102
|
||||
# define SSL_CTRL_GET_CLIENT_CERT_TYPES 103
|
||||
# define SSL_CTRL_SET_CLIENT_CERT_TYPES 104
|
||||
# define SSL_CTRL_BUILD_CERT_CHAIN 105
|
||||
# define SSL_CTRL_SET_VERIFY_CERT_STORE 106
|
||||
# define SSL_CTRL_SET_CHAIN_CERT_STORE 107
|
||||
# define SSL_CTRL_GET_PEER_SIGNATURE_NID 108
|
||||
# define SSL_CTRL_GET_PEER_TMP_KEY 109
|
||||
# define SSL_CTRL_GET_RAW_CIPHERLIST 110
|
||||
# define SSL_CTRL_GET_EC_POINT_FORMATS 111
|
||||
# define SSL_CTRL_GET_CHAIN_CERTS 115
|
||||
# define SSL_CTRL_SELECT_CURRENT_CERT 116
|
||||
# define SSL_CTRL_SET_CURRENT_CERT 117
|
||||
# define SSL_CTRL_SET_DH_AUTO 118
|
||||
# define DTLS_CTRL_SET_LINK_MTU 120
|
||||
# define DTLS_CTRL_GET_LINK_MIN_MTU 121
|
||||
# define SSL_CTRL_GET_EXTMS_SUPPORT 122
|
||||
# define SSL_CTRL_SET_MIN_PROTO_VERSION 123
|
||||
# define SSL_CTRL_SET_MAX_PROTO_VERSION 124
|
||||
# define SSL_CTRL_SET_SPLIT_SEND_FRAGMENT 125
|
||||
# define SSL_CTRL_SET_MAX_PIPELINES 126
|
||||
# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE 127
|
||||
# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB 128
|
||||
# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG 129
|
||||
# define SSL_CTRL_GET_MIN_PROTO_VERSION 130
|
||||
# define SSL_CTRL_GET_MAX_PROTO_VERSION 131
|
||||
# define SSL_CTRL_GET_SIGNATURE_NID 132
|
||||
# define SSL_CTRL_GET_TMP_KEY 133
|
||||
# define SSL_CTRL_GET_NEGOTIATED_GROUP 134
|
||||
# define SSL_CERT_SET_FIRST 1
|
||||
# define SSL_CERT_SET_NEXT 2
|
||||
# define SSL_CERT_SET_SERVER 3
|
||||
# define DTLSv1_get_timeout(ssl, arg) \
|
||||
SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0, (void *)(arg))
|
||||
# define DTLSv1_handle_timeout(ssl) \
|
||||
SSL_ctrl(ssl,DTLS_CTRL_HANDLE_TIMEOUT,0, NULL)
|
||||
# define SSL_num_renegotiations(ssl) \
|
||||
SSL_ctrl((ssl),SSL_CTRL_GET_NUM_RENEGOTIATIONS,0,NULL)
|
||||
# define SSL_clear_num_renegotiations(ssl) \
|
||||
SSL_ctrl((ssl),SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS,0,NULL)
|
||||
# define SSL_total_renegotiations(ssl) \
|
||||
SSL_ctrl((ssl),SSL_CTRL_GET_TOTAL_RENEGOTIATIONS,0,NULL)
|
||||
# define SSL_CTX_set_tmp_dh(ctx,dh) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)(dh))
|
||||
# define SSL_CTX_set_dh_auto(ctx, onoff) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_DH_AUTO,onoff,NULL)
|
||||
# define SSL_set_dh_auto(s, onoff) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_DH_AUTO,onoff,NULL)
|
||||
# define SSL_set_tmp_dh(ssl,dh) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)(dh))
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
# define SSL_CTX_set_tmp_ecdh(ctx,ecdh) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh))
|
||||
# define SSL_set_tmp_ecdh(ssl,ecdh) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh))
|
||||
# endif
|
||||
# define SSL_CTX_add_extra_chain_cert(ctx,x509) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)(x509))
|
||||
# define SSL_CTX_get_extra_chain_certs(ctx,px509) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,0,px509)
|
||||
# define SSL_CTX_get_extra_chain_certs_only(ctx,px509) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,1,px509)
|
||||
# define SSL_CTX_clear_extra_chain_certs(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS,0,NULL)
|
||||
# define SSL_CTX_set0_chain(ctx,sk) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,0,(char *)(sk))
|
||||
# define SSL_CTX_set1_chain(ctx,sk) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,1,(char *)(sk))
|
||||
# define SSL_CTX_add0_chain_cert(ctx,x509) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,0,(char *)(x509))
|
||||
# define SSL_CTX_add1_chain_cert(ctx,x509) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,1,(char *)(x509))
|
||||
# define SSL_CTX_get0_chain_certs(ctx,px509) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_CHAIN_CERTS,0,px509)
|
||||
# define SSL_CTX_clear_chain_certs(ctx) \
|
||||
SSL_CTX_set0_chain(ctx,NULL)
|
||||
# define SSL_CTX_build_cert_chain(ctx, flags) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL)
|
||||
# define SSL_CTX_select_current_cert(ctx,x509) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509))
|
||||
# define SSL_CTX_set_current_cert(ctx, op) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CURRENT_CERT, op, NULL)
|
||||
# define SSL_CTX_set0_verify_cert_store(ctx,st) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))
|
||||
# define SSL_CTX_set1_verify_cert_store(ctx,st) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))
|
||||
# define SSL_CTX_set0_chain_cert_store(ctx,st) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))
|
||||
# define SSL_CTX_set1_chain_cert_store(ctx,st) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))
|
||||
# define SSL_set0_chain(s,sk) \
|
||||
SSL_ctrl(s,SSL_CTRL_CHAIN,0,(char *)(sk))
|
||||
# define SSL_set1_chain(s,sk) \
|
||||
SSL_ctrl(s,SSL_CTRL_CHAIN,1,(char *)(sk))
|
||||
# define SSL_add0_chain_cert(s,x509) \
|
||||
SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,0,(char *)(x509))
|
||||
# define SSL_add1_chain_cert(s,x509) \
|
||||
SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,1,(char *)(x509))
|
||||
# define SSL_get0_chain_certs(s,px509) \
|
||||
SSL_ctrl(s,SSL_CTRL_GET_CHAIN_CERTS,0,px509)
|
||||
# define SSL_clear_chain_certs(s) \
|
||||
SSL_set0_chain(s,NULL)
|
||||
# define SSL_build_cert_chain(s, flags) \
|
||||
SSL_ctrl(s,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL)
|
||||
# define SSL_select_current_cert(s,x509) \
|
||||
SSL_ctrl(s,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509))
|
||||
# define SSL_set_current_cert(s,op) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_CURRENT_CERT, op, NULL)
|
||||
# define SSL_set0_verify_cert_store(s,st) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))
|
||||
# define SSL_set1_verify_cert_store(s,st) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))
|
||||
# define SSL_set0_chain_cert_store(s,st) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))
|
||||
# define SSL_set1_chain_cert_store(s,st) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))
|
||||
# define SSL_get1_groups(s, glist) \
|
||||
SSL_ctrl(s,SSL_CTRL_GET_GROUPS,0,(int*)(glist))
|
||||
# define SSL_CTX_set1_groups(ctx, glist, glistlen) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist))
|
||||
# define SSL_CTX_set1_groups_list(ctx, s) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s))
|
||||
# define SSL_set1_groups(s, glist, glistlen) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist))
|
||||
# define SSL_set1_groups_list(s, str) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(str))
|
||||
# define SSL_get_shared_group(s, n) \
|
||||
SSL_ctrl(s,SSL_CTRL_GET_SHARED_GROUP,n,NULL)
|
||||
# define SSL_get_negotiated_group(s) \
|
||||
SSL_ctrl(s,SSL_CTRL_GET_NEGOTIATED_GROUP,0,NULL)
|
||||
# define SSL_CTX_set1_sigalgs(ctx, slist, slistlen) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))
|
||||
# define SSL_CTX_set1_sigalgs_list(ctx, s) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(s))
|
||||
# define SSL_set1_sigalgs(s, slist, slistlen) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))
|
||||
# define SSL_set1_sigalgs_list(s, str) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(str))
|
||||
# define SSL_CTX_set1_client_sigalgs(ctx, slist, slistlen) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(int *)(slist))
|
||||
# define SSL_CTX_set1_client_sigalgs_list(ctx, s) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(s))
|
||||
# define SSL_set1_client_sigalgs(s, slist, slistlen) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(int *)(slist))
|
||||
# define SSL_set1_client_sigalgs_list(s, str) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(str))
|
||||
# define SSL_get0_certificate_types(s, clist) \
|
||||
SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, (char *)(clist))
|
||||
# define SSL_CTX_set1_client_certificate_types(ctx, clist, clistlen) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen, \
|
||||
(char *)(clist))
|
||||
# define SSL_set1_client_certificate_types(s, clist, clistlen) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen,(char *)(clist))
|
||||
# define SSL_get_signature_nid(s, pn) \
|
||||
SSL_ctrl(s,SSL_CTRL_GET_SIGNATURE_NID,0,pn)
|
||||
# define SSL_get_peer_signature_nid(s, pn) \
|
||||
SSL_ctrl(s,SSL_CTRL_GET_PEER_SIGNATURE_NID,0,pn)
|
||||
# define SSL_get_peer_tmp_key(s, pk) \
|
||||
SSL_ctrl(s,SSL_CTRL_GET_PEER_TMP_KEY,0,pk)
|
||||
# define SSL_get_tmp_key(s, pk) \
|
||||
SSL_ctrl(s,SSL_CTRL_GET_TMP_KEY,0,pk)
|
||||
# define SSL_get0_raw_cipherlist(s, plst) \
|
||||
SSL_ctrl(s,SSL_CTRL_GET_RAW_CIPHERLIST,0,plst)
|
||||
# define SSL_get0_ec_point_formats(s, plst) \
|
||||
SSL_ctrl(s,SSL_CTRL_GET_EC_POINT_FORMATS,0,plst)
|
||||
# define SSL_CTX_set_min_proto_version(ctx, version) \
|
||||
SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)
|
||||
# define SSL_CTX_set_max_proto_version(ctx, version) \
|
||||
SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)
|
||||
# define SSL_CTX_get_min_proto_version(ctx) \
|
||||
SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL)
|
||||
# define SSL_CTX_get_max_proto_version(ctx) \
|
||||
SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)
|
||||
# define SSL_set_min_proto_version(s, version) \
|
||||
SSL_ctrl(s, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)
|
||||
# define SSL_set_max_proto_version(s, version) \
|
||||
SSL_ctrl(s, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)
|
||||
# define SSL_get_min_proto_version(s) \
|
||||
SSL_ctrl(s, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL)
|
||||
# define SSL_get_max_proto_version(s) \
|
||||
SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)
|
||||
|
||||
/* Backwards compatibility, original 1.1.0 names */
|
||||
# define SSL_CTRL_GET_SERVER_TMP_KEY \
|
||||
SSL_CTRL_GET_PEER_TMP_KEY
|
||||
# define SSL_get_server_tmp_key(s, pk) \
|
||||
SSL_get_peer_tmp_key(s, pk)
|
||||
|
||||
/*
|
||||
* The following symbol names are old and obsolete. They are kept
|
||||
* for compatibility reasons only and should not be used anymore.
|
||||
*/
|
||||
# define SSL_CTRL_GET_CURVES SSL_CTRL_GET_GROUPS
|
||||
# define SSL_CTRL_SET_CURVES SSL_CTRL_SET_GROUPS
|
||||
# define SSL_CTRL_SET_CURVES_LIST SSL_CTRL_SET_GROUPS_LIST
|
||||
# define SSL_CTRL_GET_SHARED_CURVE SSL_CTRL_GET_SHARED_GROUP
|
||||
|
||||
# define SSL_get1_curves SSL_get1_groups
|
||||
# define SSL_CTX_set1_curves SSL_CTX_set1_groups
|
||||
# define SSL_CTX_set1_curves_list SSL_CTX_set1_groups_list
|
||||
# define SSL_set1_curves SSL_set1_groups
|
||||
# define SSL_set1_curves_list SSL_set1_groups_list
|
||||
# define SSL_get_shared_curve SSL_get_shared_group
|
||||
|
||||
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
/* Provide some compatibility macros for removed functionality. */
|
||||
# define SSL_CTX_need_tmp_RSA(ctx) 0
|
||||
# define SSL_CTX_set_tmp_rsa(ctx,rsa) 1
|
||||
# define SSL_need_tmp_RSA(ssl) 0
|
||||
# define SSL_set_tmp_rsa(ssl,rsa) 1
|
||||
# define SSL_CTX_set_ecdh_auto(dummy, onoff) ((onoff) != 0)
|
||||
# define SSL_set_ecdh_auto(dummy, onoff) ((onoff) != 0)
|
||||
/*
|
||||
* We "pretend" to call the callback to avoid warnings about unused static
|
||||
* functions.
|
||||
*/
|
||||
# define SSL_CTX_set_tmp_rsa_callback(ctx, cb) while(0) (cb)(NULL, 0, 0)
|
||||
# define SSL_set_tmp_rsa_callback(ssl, cb) while(0) (cb)(NULL, 0, 0)
|
||||
# endif
|
||||
__owur const BIO_METHOD *BIO_f_ssl(void);
|
||||
__owur BIO *BIO_new_ssl(SSL_CTX *ctx, int client);
|
||||
__owur BIO *BIO_new_ssl_connect(SSL_CTX *ctx);
|
||||
__owur BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx);
|
||||
__owur int BIO_ssl_copy_session_id(BIO *to, BIO *from);
|
||||
void BIO_ssl_shutdown(BIO *ssl_bio);
|
||||
|
||||
__owur int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str);
|
||||
__owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
|
||||
int SSL_CTX_up_ref(SSL_CTX *ctx);
|
||||
void SSL_CTX_free(SSL_CTX *);
|
||||
__owur long SSL_CTX_set_timeout(SSL_CTX *ctx, long t);
|
||||
__owur long SSL_CTX_get_timeout(const SSL_CTX *ctx);
|
||||
__owur X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *);
|
||||
void SSL_CTX_set_cert_store(SSL_CTX *, X509_STORE *);
|
||||
void SSL_CTX_set1_cert_store(SSL_CTX *, X509_STORE *);
|
||||
__owur int SSL_want(const SSL *s);
|
||||
__owur int SSL_clear(SSL *s);
|
||||
|
||||
void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);
|
||||
|
||||
__owur const SSL_CIPHER *SSL_get_current_cipher(const SSL *s);
|
||||
__owur const SSL_CIPHER *SSL_get_pending_cipher(const SSL *s);
|
||||
__owur int SSL_CIPHER_get_bits(const SSL_CIPHER *c, int *alg_bits);
|
||||
__owur const char *SSL_CIPHER_get_version(const SSL_CIPHER *c);
|
||||
__owur const char *SSL_CIPHER_get_name(const SSL_CIPHER *c);
|
||||
__owur const char *SSL_CIPHER_standard_name(const SSL_CIPHER *c);
|
||||
__owur const char *OPENSSL_cipher_name(const char *rfc_name);
|
||||
__owur uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *c);
|
||||
__owur uint16_t SSL_CIPHER_get_protocol_id(const SSL_CIPHER *c);
|
||||
__owur int SSL_CIPHER_get_kx_nid(const SSL_CIPHER *c);
|
||||
__owur int SSL_CIPHER_get_auth_nid(const SSL_CIPHER *c);
|
||||
__owur const EVP_MD *SSL_CIPHER_get_handshake_digest(const SSL_CIPHER *c);
|
||||
__owur int SSL_CIPHER_is_aead(const SSL_CIPHER *c);
|
||||
|
||||
__owur int SSL_get_fd(const SSL *s);
|
||||
__owur int SSL_get_rfd(const SSL *s);
|
||||
__owur int SSL_get_wfd(const SSL *s);
|
||||
__owur const char *SSL_get_cipher_list(const SSL *s, int n);
|
||||
__owur char *SSL_get_shared_ciphers(const SSL *s, char *buf, int size);
|
||||
__owur int SSL_get_read_ahead(const SSL *s);
|
||||
__owur int SSL_pending(const SSL *s);
|
||||
__owur int SSL_has_pending(const SSL *s);
|
||||
# ifndef OPENSSL_NO_SOCK
|
||||
__owur int SSL_set_fd(SSL *s, int fd);
|
||||
__owur int SSL_set_rfd(SSL *s, int fd);
|
||||
__owur int SSL_set_wfd(SSL *s, int fd);
|
||||
# endif
|
||||
void SSL_set0_rbio(SSL *s, BIO *rbio);
|
||||
void SSL_set0_wbio(SSL *s, BIO *wbio);
|
||||
void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
|
||||
__owur BIO *SSL_get_rbio(const SSL *s);
|
||||
__owur BIO *SSL_get_wbio(const SSL *s);
|
||||
__owur int SSL_set_cipher_list(SSL *s, const char *str);
|
||||
__owur int SSL_CTX_set_ciphersuites(SSL_CTX *ctx, const char *str);
|
||||
__owur int SSL_set_ciphersuites(SSL *s, const char *str);
|
||||
void SSL_set_read_ahead(SSL *s, int yes);
|
||||
__owur int SSL_get_verify_mode(const SSL *s);
|
||||
__owur int SSL_get_verify_depth(const SSL *s);
|
||||
__owur SSL_verify_cb SSL_get_verify_callback(const SSL *s);
|
||||
void SSL_set_verify(SSL *s, int mode, SSL_verify_cb callback);
|
||||
void SSL_set_verify_depth(SSL *s, int depth);
|
||||
void SSL_set_cert_cb(SSL *s, int (*cb) (SSL *ssl, void *arg), void *arg);
|
||||
# ifndef OPENSSL_NO_RSA
|
||||
__owur int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);
|
||||
__owur int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d,
|
||||
long len);
|
||||
# endif
|
||||
__owur int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);
|
||||
__owur int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, const unsigned char *d,
|
||||
long len);
|
||||
__owur int SSL_use_certificate(SSL *ssl, X509 *x);
|
||||
__owur int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);
|
||||
__owur int SSL_use_cert_and_key(SSL *ssl, X509 *x509, EVP_PKEY *privatekey,
|
||||
STACK_OF(X509) *chain, int override);
|
||||
|
||||
|
||||
/* serverinfo file format versions */
|
||||
# define SSL_SERVERINFOV1 1
|
||||
# define SSL_SERVERINFOV2 2
|
||||
|
||||
/* Set serverinfo data for the current active cert. */
|
||||
__owur int SSL_CTX_use_serverinfo(SSL_CTX *ctx, const unsigned char *serverinfo,
|
||||
size_t serverinfo_length);
|
||||
__owur int SSL_CTX_use_serverinfo_ex(SSL_CTX *ctx, unsigned int version,
|
||||
const unsigned char *serverinfo,
|
||||
size_t serverinfo_length);
|
||||
__owur int SSL_CTX_use_serverinfo_file(SSL_CTX *ctx, const char *file);
|
||||
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
__owur int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type);
|
||||
#endif
|
||||
|
||||
__owur int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type);
|
||||
__owur int SSL_use_certificate_file(SSL *ssl, const char *file, int type);
|
||||
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
__owur int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file,
|
||||
int type);
|
||||
#endif
|
||||
__owur int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file,
|
||||
int type);
|
||||
__owur int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file,
|
||||
int type);
|
||||
/* PEM type */
|
||||
__owur int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file);
|
||||
__owur int SSL_use_certificate_chain_file(SSL *ssl, const char *file);
|
||||
__owur STACK_OF(X509_NAME) *SSL_load_client_CA_file(const char *file);
|
||||
__owur int SSL_add_file_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs,
|
||||
const char *file);
|
||||
int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs,
|
||||
const char *dir);
|
||||
int SSL_add_store_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs,
|
||||
const char *uri);
|
||||
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# define SSL_load_error_strings() \
|
||||
OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \
|
||||
| OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
|
||||
# endif
|
||||
|
||||
__owur const char *SSL_state_string(const SSL *s);
|
||||
__owur const char *SSL_rstate_string(const SSL *s);
|
||||
__owur const char *SSL_state_string_long(const SSL *s);
|
||||
__owur const char *SSL_rstate_string_long(const SSL *s);
|
||||
__owur long SSL_SESSION_get_time(const SSL_SESSION *s);
|
||||
__owur long SSL_SESSION_set_time(SSL_SESSION *s, long t);
|
||||
__owur long SSL_SESSION_get_timeout(const SSL_SESSION *s);
|
||||
__owur long SSL_SESSION_set_timeout(SSL_SESSION *s, long t);
|
||||
__owur int SSL_SESSION_get_protocol_version(const SSL_SESSION *s);
|
||||
__owur int SSL_SESSION_set_protocol_version(SSL_SESSION *s, int version);
|
||||
|
||||
__owur const char *SSL_SESSION_get0_hostname(const SSL_SESSION *s);
|
||||
__owur int SSL_SESSION_set1_hostname(SSL_SESSION *s, const char *hostname);
|
||||
void SSL_SESSION_get0_alpn_selected(const SSL_SESSION *s,
|
||||
const unsigned char **alpn,
|
||||
size_t *len);
|
||||
__owur int SSL_SESSION_set1_alpn_selected(SSL_SESSION *s,
|
||||
const unsigned char *alpn,
|
||||
size_t len);
|
||||
__owur const SSL_CIPHER *SSL_SESSION_get0_cipher(const SSL_SESSION *s);
|
||||
__owur int SSL_SESSION_set_cipher(SSL_SESSION *s, const SSL_CIPHER *cipher);
|
||||
__owur int SSL_SESSION_has_ticket(const SSL_SESSION *s);
|
||||
__owur unsigned long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s);
|
||||
void SSL_SESSION_get0_ticket(const SSL_SESSION *s, const unsigned char **tick,
|
||||
size_t *len);
|
||||
__owur uint32_t SSL_SESSION_get_max_early_data(const SSL_SESSION *s);
|
||||
__owur int SSL_SESSION_set_max_early_data(SSL_SESSION *s,
|
||||
uint32_t max_early_data);
|
||||
__owur int SSL_copy_session_id(SSL *to, const SSL *from);
|
||||
__owur X509 *SSL_SESSION_get0_peer(SSL_SESSION *s);
|
||||
__owur int SSL_SESSION_set1_id_context(SSL_SESSION *s,
|
||||
const unsigned char *sid_ctx,
|
||||
unsigned int sid_ctx_len);
|
||||
__owur int SSL_SESSION_set1_id(SSL_SESSION *s, const unsigned char *sid,
|
||||
unsigned int sid_len);
|
||||
__owur int SSL_SESSION_is_resumable(const SSL_SESSION *s);
|
||||
|
||||
__owur SSL_SESSION *SSL_SESSION_new(void);
|
||||
__owur SSL_SESSION *SSL_SESSION_dup(const SSL_SESSION *src);
|
||||
const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s,
|
||||
unsigned int *len);
|
||||
const unsigned char *SSL_SESSION_get0_id_context(const SSL_SESSION *s,
|
||||
unsigned int *len);
|
||||
__owur unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);
|
||||
# ifndef OPENSSL_NO_STDIO
|
||||
int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses);
|
||||
# endif
|
||||
int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses);
|
||||
int SSL_SESSION_print_keylog(BIO *bp, const SSL_SESSION *x);
|
||||
int SSL_SESSION_up_ref(SSL_SESSION *ses);
|
||||
void SSL_SESSION_free(SSL_SESSION *ses);
|
||||
__owur int i2d_SSL_SESSION(const SSL_SESSION *in, unsigned char **pp);
|
||||
__owur int SSL_set_session(SSL *to, SSL_SESSION *session);
|
||||
int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *session);
|
||||
int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *session);
|
||||
__owur int SSL_CTX_set_generate_session_id(SSL_CTX *ctx, GEN_SESSION_CB cb);
|
||||
__owur int SSL_set_generate_session_id(SSL *s, GEN_SESSION_CB cb);
|
||||
__owur int SSL_has_matching_session_id(const SSL *s,
|
||||
const unsigned char *id,
|
||||
unsigned int id_len);
|
||||
SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
|
||||
long length);
|
||||
|
||||
# ifdef OPENSSL_X509_H
|
||||
__owur X509 *SSL_get_peer_certificate(const SSL *s);
|
||||
# endif
|
||||
|
||||
__owur STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s);
|
||||
|
||||
__owur int SSL_CTX_get_verify_mode(const SSL_CTX *ctx);
|
||||
__owur int SSL_CTX_get_verify_depth(const SSL_CTX *ctx);
|
||||
__owur SSL_verify_cb SSL_CTX_get_verify_callback(const SSL_CTX *ctx);
|
||||
void SSL_CTX_set_verify(SSL_CTX *ctx, int mode, SSL_verify_cb callback);
|
||||
void SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);
|
||||
void SSL_CTX_set_cert_verify_callback(SSL_CTX *ctx,
|
||||
int (*cb) (X509_STORE_CTX *, void *),
|
||||
void *arg);
|
||||
void SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb) (SSL *ssl, void *arg),
|
||||
void *arg);
|
||||
# ifndef OPENSSL_NO_RSA
|
||||
__owur int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);
|
||||
__owur int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d,
|
||||
long len);
|
||||
# endif
|
||||
__owur int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey);
|
||||
__owur int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx,
|
||||
const unsigned char *d, long len);
|
||||
__owur int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x);
|
||||
__owur int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len,
|
||||
const unsigned char *d);
|
||||
__owur int SSL_CTX_use_cert_and_key(SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey,
|
||||
STACK_OF(X509) *chain, int override);
|
||||
|
||||
void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb);
|
||||
void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u);
|
||||
pem_password_cb *SSL_CTX_get_default_passwd_cb(SSL_CTX *ctx);
|
||||
void *SSL_CTX_get_default_passwd_cb_userdata(SSL_CTX *ctx);
|
||||
void SSL_set_default_passwd_cb(SSL *s, pem_password_cb *cb);
|
||||
void SSL_set_default_passwd_cb_userdata(SSL *s, void *u);
|
||||
pem_password_cb *SSL_get_default_passwd_cb(SSL *s);
|
||||
void *SSL_get_default_passwd_cb_userdata(SSL *s);
|
||||
|
||||
__owur int SSL_CTX_check_private_key(const SSL_CTX *ctx);
|
||||
__owur int SSL_check_private_key(const SSL *ctx);
|
||||
|
||||
__owur int SSL_CTX_set_session_id_context(SSL_CTX *ctx,
|
||||
const unsigned char *sid_ctx,
|
||||
unsigned int sid_ctx_len);
|
||||
|
||||
SSL *SSL_new(SSL_CTX *ctx);
|
||||
int SSL_up_ref(SSL *s);
|
||||
int SSL_is_dtls(const SSL *s);
|
||||
__owur int SSL_set_session_id_context(SSL *ssl, const unsigned char *sid_ctx,
|
||||
unsigned int sid_ctx_len);
|
||||
|
||||
__owur int SSL_CTX_set_purpose(SSL_CTX *ctx, int purpose);
|
||||
__owur int SSL_set_purpose(SSL *ssl, int purpose);
|
||||
__owur int SSL_CTX_set_trust(SSL_CTX *ctx, int trust);
|
||||
__owur int SSL_set_trust(SSL *ssl, int trust);
|
||||
|
||||
__owur int SSL_set1_host(SSL *s, const char *hostname);
|
||||
__owur int SSL_add1_host(SSL *s, const char *hostname);
|
||||
__owur const char *SSL_get0_peername(SSL *s);
|
||||
void SSL_set_hostflags(SSL *s, unsigned int flags);
|
||||
|
||||
__owur int SSL_CTX_dane_enable(SSL_CTX *ctx);
|
||||
__owur int SSL_CTX_dane_mtype_set(SSL_CTX *ctx, const EVP_MD *md,
|
||||
uint8_t mtype, uint8_t ord);
|
||||
__owur int SSL_dane_enable(SSL *s, const char *basedomain);
|
||||
__owur int SSL_dane_tlsa_add(SSL *s, uint8_t usage, uint8_t selector,
|
||||
uint8_t mtype, unsigned const char *data, size_t dlen);
|
||||
__owur int SSL_get0_dane_authority(SSL *s, X509 **mcert, EVP_PKEY **mspki);
|
||||
__owur int SSL_get0_dane_tlsa(SSL *s, uint8_t *usage, uint8_t *selector,
|
||||
uint8_t *mtype, unsigned const char **data,
|
||||
size_t *dlen);
|
||||
/*
|
||||
* Bridge opacity barrier between libcrypt and libssl, also needed to support
|
||||
* offline testing in test/danetest.c
|
||||
*/
|
||||
SSL_DANE *SSL_get0_dane(SSL *ssl);
|
||||
/*
|
||||
* DANE flags
|
||||
*/
|
||||
unsigned long SSL_CTX_dane_set_flags(SSL_CTX *ctx, unsigned long flags);
|
||||
unsigned long SSL_CTX_dane_clear_flags(SSL_CTX *ctx, unsigned long flags);
|
||||
unsigned long SSL_dane_set_flags(SSL *ssl, unsigned long flags);
|
||||
unsigned long SSL_dane_clear_flags(SSL *ssl, unsigned long flags);
|
||||
|
||||
__owur int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm);
|
||||
__owur int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm);
|
||||
|
||||
__owur X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);
|
||||
__owur X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl);
|
||||
|
||||
# ifndef OPENSSL_NO_SRP
|
||||
int SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name);
|
||||
int SSL_CTX_set_srp_password(SSL_CTX *ctx, char *password);
|
||||
int SSL_CTX_set_srp_strength(SSL_CTX *ctx, int strength);
|
||||
int SSL_CTX_set_srp_client_pwd_callback(SSL_CTX *ctx,
|
||||
char *(*cb) (SSL *, void *));
|
||||
int SSL_CTX_set_srp_verify_param_callback(SSL_CTX *ctx,
|
||||
int (*cb) (SSL *, void *));
|
||||
int SSL_CTX_set_srp_username_callback(SSL_CTX *ctx,
|
||||
int (*cb) (SSL *, int *, void *));
|
||||
int SSL_CTX_set_srp_cb_arg(SSL_CTX *ctx, void *arg);
|
||||
|
||||
int SSL_set_srp_server_param(SSL *s, const BIGNUM *N, const BIGNUM *g,
|
||||
BIGNUM *sa, BIGNUM *v, char *info);
|
||||
int SSL_set_srp_server_param_pw(SSL *s, const char *user, const char *pass,
|
||||
const char *grp);
|
||||
|
||||
__owur BIGNUM *SSL_get_srp_g(SSL *s);
|
||||
__owur BIGNUM *SSL_get_srp_N(SSL *s);
|
||||
|
||||
__owur char *SSL_get_srp_username(SSL *s);
|
||||
__owur char *SSL_get_srp_userinfo(SSL *s);
|
||||
# endif
|
||||
|
||||
/*
|
||||
* ClientHello callback and helpers.
|
||||
*/
|
||||
|
||||
# define SSL_CLIENT_HELLO_SUCCESS 1
|
||||
# define SSL_CLIENT_HELLO_ERROR 0
|
||||
# define SSL_CLIENT_HELLO_RETRY (-1)
|
||||
|
||||
typedef int (*SSL_client_hello_cb_fn) (SSL *s, int *al, void *arg);
|
||||
void SSL_CTX_set_client_hello_cb(SSL_CTX *c, SSL_client_hello_cb_fn cb,
|
||||
void *arg);
|
||||
int SSL_client_hello_isv2(SSL *s);
|
||||
unsigned int SSL_client_hello_get0_legacy_version(SSL *s);
|
||||
size_t SSL_client_hello_get0_random(SSL *s, const unsigned char **out);
|
||||
size_t SSL_client_hello_get0_session_id(SSL *s, const unsigned char **out);
|
||||
size_t SSL_client_hello_get0_ciphers(SSL *s, const unsigned char **out);
|
||||
size_t SSL_client_hello_get0_compression_methods(SSL *s,
|
||||
const unsigned char **out);
|
||||
int SSL_client_hello_get1_extensions_present(SSL *s, int **out, size_t *outlen);
|
||||
int SSL_client_hello_get0_ext(SSL *s, unsigned int type,
|
||||
const unsigned char **out, size_t *outlen);
|
||||
|
||||
void SSL_certs_clear(SSL *s);
|
||||
void SSL_free(SSL *ssl);
|
||||
# ifdef OSSL_ASYNC_FD
|
||||
/*
|
||||
* Windows application developer has to include windows.h to use these.
|
||||
*/
|
||||
__owur int SSL_waiting_for_async(SSL *s);
|
||||
__owur int SSL_get_all_async_fds(SSL *s, OSSL_ASYNC_FD *fds, size_t *numfds);
|
||||
__owur int SSL_get_changed_async_fds(SSL *s, OSSL_ASYNC_FD *addfd,
|
||||
size_t *numaddfds, OSSL_ASYNC_FD *delfd,
|
||||
size_t *numdelfds);
|
||||
__owur int SSL_CTX_set_async_callback(SSL_CTX *ctx, SSL_async_callback_fn callback);
|
||||
__owur int SSL_CTX_set_async_callback_arg(SSL_CTX *ctx, void *arg);
|
||||
__owur int SSL_set_async_callback(SSL *s, SSL_async_callback_fn callback);
|
||||
__owur int SSL_set_async_callback_arg(SSL *s, void *arg);
|
||||
__owur int SSL_get_async_status(SSL *s, int *status);
|
||||
|
||||
# endif
|
||||
__owur int SSL_accept(SSL *ssl);
|
||||
__owur int SSL_stateless(SSL *s);
|
||||
__owur int SSL_connect(SSL *ssl);
|
||||
__owur int SSL_read(SSL *ssl, void *buf, int num);
|
||||
__owur int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);
|
||||
|
||||
# define SSL_READ_EARLY_DATA_ERROR 0
|
||||
# define SSL_READ_EARLY_DATA_SUCCESS 1
|
||||
# define SSL_READ_EARLY_DATA_FINISH 2
|
||||
|
||||
__owur int SSL_read_early_data(SSL *s, void *buf, size_t num,
|
||||
size_t *readbytes);
|
||||
__owur int SSL_peek(SSL *ssl, void *buf, int num);
|
||||
__owur int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);
|
||||
__owur ossl_ssize_t SSL_sendfile(SSL *s, int fd, off_t offset, size_t size,
|
||||
int flags);
|
||||
__owur int SSL_write(SSL *ssl, const void *buf, int num);
|
||||
__owur int SSL_write_ex(SSL *s, const void *buf, size_t num, size_t *written);
|
||||
__owur int SSL_write_early_data(SSL *s, const void *buf, size_t num,
|
||||
size_t *written);
|
||||
long SSL_ctrl(SSL *ssl, int cmd, long larg, void *parg);
|
||||
long SSL_callback_ctrl(SSL *, int, void (*)(void));
|
||||
long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg);
|
||||
long SSL_CTX_callback_ctrl(SSL_CTX *, int, void (*)(void));
|
||||
|
||||
# define SSL_EARLY_DATA_NOT_SENT 0
|
||||
# define SSL_EARLY_DATA_REJECTED 1
|
||||
# define SSL_EARLY_DATA_ACCEPTED 2
|
||||
|
||||
__owur int SSL_get_early_data_status(const SSL *s);
|
||||
|
||||
__owur int SSL_get_error(const SSL *s, int ret_code);
|
||||
__owur const char *SSL_get_version(const SSL *s);
|
||||
|
||||
/* This sets the 'default' SSL version that SSL_new() will create */
|
||||
__owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth);
|
||||
|
||||
# ifndef OPENSSL_NO_SSL3_METHOD
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_method(void)) /* SSLv3 */
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_server_method(void))
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void))
|
||||
# endif
|
||||
|
||||
#define SSLv23_method TLS_method
|
||||
#define SSLv23_server_method TLS_server_method
|
||||
#define SSLv23_client_method TLS_client_method
|
||||
|
||||
/* Negotiate highest available SSL/TLS version */
|
||||
__owur const SSL_METHOD *TLS_method(void);
|
||||
__owur const SSL_METHOD *TLS_server_method(void);
|
||||
__owur const SSL_METHOD *TLS_client_method(void);
|
||||
|
||||
# ifndef OPENSSL_NO_TLS1_METHOD
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void))
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void))
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_TLS1_1_METHOD
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void))
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void))
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_TLS1_2_METHOD
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void))
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void))
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_DTLS1_METHOD
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_method(void)) /* DTLSv1.0 */
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_server_method(void))
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_client_method(void))
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_DTLS1_2_METHOD
|
||||
/* DTLSv1.2 */
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_method(void))
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_server_method(void))
|
||||
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_client_method(void))
|
||||
# endif
|
||||
|
||||
__owur const SSL_METHOD *DTLS_method(void); /* DTLS 1.0 and 1.2 */
|
||||
__owur const SSL_METHOD *DTLS_server_method(void); /* DTLS 1.0 and 1.2 */
|
||||
__owur const SSL_METHOD *DTLS_client_method(void); /* DTLS 1.0 and 1.2 */
|
||||
|
||||
__owur size_t DTLS_get_data_mtu(const SSL *s);
|
||||
|
||||
__owur STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *s);
|
||||
__owur STACK_OF(SSL_CIPHER) *SSL_CTX_get_ciphers(const SSL_CTX *ctx);
|
||||
__owur STACK_OF(SSL_CIPHER) *SSL_get_client_ciphers(const SSL *s);
|
||||
__owur STACK_OF(SSL_CIPHER) *SSL_get1_supported_ciphers(SSL *s);
|
||||
|
||||
__owur int SSL_do_handshake(SSL *s);
|
||||
int SSL_key_update(SSL *s, int updatetype);
|
||||
int SSL_get_key_update_type(const SSL *s);
|
||||
int SSL_renegotiate(SSL *s);
|
||||
int SSL_renegotiate_abbreviated(SSL *s);
|
||||
__owur int SSL_renegotiate_pending(const SSL *s);
|
||||
int SSL_shutdown(SSL *s);
|
||||
__owur int SSL_verify_client_post_handshake(SSL *s);
|
||||
void SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);
|
||||
void SSL_set_post_handshake_auth(SSL *s, int val);
|
||||
|
||||
__owur const SSL_METHOD *SSL_CTX_get_ssl_method(const SSL_CTX *ctx);
|
||||
__owur const SSL_METHOD *SSL_get_ssl_method(const SSL *s);
|
||||
__owur int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method);
|
||||
__owur const char *SSL_alert_type_string_long(int value);
|
||||
__owur const char *SSL_alert_type_string(int value);
|
||||
__owur const char *SSL_alert_desc_string_long(int value);
|
||||
__owur const char *SSL_alert_desc_string(int value);
|
||||
|
||||
void SSL_set0_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);
|
||||
void SSL_CTX_set0_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list);
|
||||
__owur const STACK_OF(X509_NAME) *SSL_get0_CA_list(const SSL *s);
|
||||
__owur const STACK_OF(X509_NAME) *SSL_CTX_get0_CA_list(const SSL_CTX *ctx);
|
||||
__owur int SSL_add1_to_CA_list(SSL *ssl, const X509 *x);
|
||||
__owur int SSL_CTX_add1_to_CA_list(SSL_CTX *ctx, const X509 *x);
|
||||
__owur const STACK_OF(X509_NAME) *SSL_get0_peer_CA_list(const SSL *s);
|
||||
|
||||
void SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);
|
||||
void SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list);
|
||||
__owur STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s);
|
||||
__owur STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *s);
|
||||
__owur int SSL_add_client_CA(SSL *ssl, X509 *x);
|
||||
__owur int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x);
|
||||
|
||||
void SSL_set_connect_state(SSL *s);
|
||||
void SSL_set_accept_state(SSL *s);
|
||||
|
||||
__owur long SSL_get_default_timeout(const SSL *s);
|
||||
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# define SSL_library_init() OPENSSL_init_ssl(0, NULL)
|
||||
# endif
|
||||
|
||||
__owur char *SSL_CIPHER_description(const SSL_CIPHER *, char *buf, int size);
|
||||
__owur STACK_OF(X509_NAME) *SSL_dup_CA_list(const STACK_OF(X509_NAME) *sk);
|
||||
|
||||
__owur SSL *SSL_dup(SSL *ssl);
|
||||
|
||||
__owur X509 *SSL_get_certificate(const SSL *ssl);
|
||||
/*
|
||||
* EVP_PKEY
|
||||
*/
|
||||
struct evp_pkey_st *SSL_get_privatekey(const SSL *ssl);
|
||||
|
||||
__owur X509 *SSL_CTX_get0_certificate(const SSL_CTX *ctx);
|
||||
__owur EVP_PKEY *SSL_CTX_get0_privatekey(const SSL_CTX *ctx);
|
||||
|
||||
void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode);
|
||||
__owur int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx);
|
||||
void SSL_set_quiet_shutdown(SSL *ssl, int mode);
|
||||
__owur int SSL_get_quiet_shutdown(const SSL *ssl);
|
||||
void SSL_set_shutdown(SSL *ssl, int mode);
|
||||
__owur int SSL_get_shutdown(const SSL *ssl);
|
||||
__owur int SSL_version(const SSL *ssl);
|
||||
__owur int SSL_client_version(const SSL *s);
|
||||
__owur int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx);
|
||||
__owur int SSL_CTX_set_default_verify_dir(SSL_CTX *ctx);
|
||||
__owur int SSL_CTX_set_default_verify_file(SSL_CTX *ctx);
|
||||
__owur int SSL_CTX_set_default_verify_store(SSL_CTX *ctx);
|
||||
__owur int SSL_CTX_load_verify_file(SSL_CTX *ctx, const char *CAfile);
|
||||
__owur int SSL_CTX_load_verify_dir(SSL_CTX *ctx, const char *CApath);
|
||||
__owur int SSL_CTX_load_verify_store(SSL_CTX *ctx, const char *CAstore);
|
||||
DEPRECATEDIN_3_0(__owur int SSL_CTX_load_verify_locations(SSL_CTX *ctx,
|
||||
const char *CAfile,
|
||||
const char *CApath))
|
||||
# define SSL_get0_session SSL_get_session/* just peek at pointer */
|
||||
__owur SSL_SESSION *SSL_get_session(const SSL *ssl);
|
||||
__owur SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */
|
||||
__owur SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
|
||||
SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);
|
||||
void SSL_set_info_callback(SSL *ssl,
|
||||
void (*cb) (const SSL *ssl, int type, int val));
|
||||
void (*SSL_get_info_callback(const SSL *ssl)) (const SSL *ssl, int type,
|
||||
int val);
|
||||
__owur OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl);
|
||||
|
||||
void SSL_set_verify_result(SSL *ssl, long v);
|
||||
__owur long SSL_get_verify_result(const SSL *ssl);
|
||||
__owur STACK_OF(X509) *SSL_get0_verified_chain(const SSL *s);
|
||||
|
||||
__owur size_t SSL_get_client_random(const SSL *ssl, unsigned char *out,
|
||||
size_t outlen);
|
||||
__owur size_t SSL_get_server_random(const SSL *ssl, unsigned char *out,
|
||||
size_t outlen);
|
||||
__owur size_t SSL_SESSION_get_master_key(const SSL_SESSION *sess,
|
||||
unsigned char *out, size_t outlen);
|
||||
__owur int SSL_SESSION_set1_master_key(SSL_SESSION *sess,
|
||||
const unsigned char *in, size_t len);
|
||||
uint8_t SSL_SESSION_get_max_fragment_length(const SSL_SESSION *sess);
|
||||
|
||||
#define SSL_get_ex_new_index(l, p, newf, dupf, freef) \
|
||||
CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL, l, p, newf, dupf, freef)
|
||||
__owur int SSL_set_ex_data(SSL *ssl, int idx, void *data);
|
||||
void *SSL_get_ex_data(const SSL *ssl, int idx);
|
||||
#define SSL_SESSION_get_ex_new_index(l, p, newf, dupf, freef) \
|
||||
CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_SESSION, l, p, newf, dupf, freef)
|
||||
__owur int SSL_SESSION_set_ex_data(SSL_SESSION *ss, int idx, void *data);
|
||||
void *SSL_SESSION_get_ex_data(const SSL_SESSION *ss, int idx);
|
||||
#define SSL_CTX_get_ex_new_index(l, p, newf, dupf, freef) \
|
||||
CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_CTX, l, p, newf, dupf, freef)
|
||||
__owur int SSL_CTX_set_ex_data(SSL_CTX *ssl, int idx, void *data);
|
||||
void *SSL_CTX_get_ex_data(const SSL_CTX *ssl, int idx);
|
||||
|
||||
__owur int SSL_get_ex_data_X509_STORE_CTX_idx(void);
|
||||
|
||||
# define SSL_CTX_sess_set_cache_size(ctx,t) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_SIZE,t,NULL)
|
||||
# define SSL_CTX_sess_get_cache_size(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_SIZE,0,NULL)
|
||||
# define SSL_CTX_set_session_cache_mode(ctx,m) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_MODE,m,NULL)
|
||||
# define SSL_CTX_get_session_cache_mode(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_MODE,0,NULL)
|
||||
|
||||
# define SSL_CTX_get_default_read_ahead(ctx) SSL_CTX_get_read_ahead(ctx)
|
||||
# define SSL_CTX_set_default_read_ahead(ctx,m) SSL_CTX_set_read_ahead(ctx,m)
|
||||
# define SSL_CTX_get_read_ahead(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_READ_AHEAD,0,NULL)
|
||||
# define SSL_CTX_set_read_ahead(ctx,m) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_READ_AHEAD,m,NULL)
|
||||
# define SSL_CTX_get_max_cert_list(ctx) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL)
|
||||
# define SSL_CTX_set_max_cert_list(ctx,m) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL)
|
||||
# define SSL_get_max_cert_list(ssl) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL)
|
||||
# define SSL_set_max_cert_list(ssl,m) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL)
|
||||
|
||||
# define SSL_CTX_set_max_send_fragment(ctx,m) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL)
|
||||
# define SSL_set_max_send_fragment(ssl,m) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL)
|
||||
# define SSL_CTX_set_split_send_fragment(ctx,m) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL)
|
||||
# define SSL_set_split_send_fragment(ssl,m) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL)
|
||||
# define SSL_CTX_set_max_pipelines(ctx,m) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_PIPELINES,m,NULL)
|
||||
# define SSL_set_max_pipelines(ssl,m) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_SET_MAX_PIPELINES,m,NULL)
|
||||
|
||||
void SSL_CTX_set_default_read_buffer_len(SSL_CTX *ctx, size_t len);
|
||||
void SSL_set_default_read_buffer_len(SSL *s, size_t len);
|
||||
|
||||
# ifndef OPENSSL_NO_DH
|
||||
/* NB: the |keylength| is only applicable when is_export is true */
|
||||
void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,
|
||||
DH *(*dh) (SSL *ssl, int is_export,
|
||||
int keylength));
|
||||
void SSL_set_tmp_dh_callback(SSL *ssl,
|
||||
DH *(*dh) (SSL *ssl, int is_export,
|
||||
int keylength));
|
||||
# endif
|
||||
|
||||
__owur const COMP_METHOD *SSL_get_current_compression(const SSL *s);
|
||||
__owur const COMP_METHOD *SSL_get_current_expansion(const SSL *s);
|
||||
__owur const char *SSL_COMP_get_name(const COMP_METHOD *comp);
|
||||
__owur const char *SSL_COMP_get0_name(const SSL_COMP *comp);
|
||||
__owur int SSL_COMP_get_id(const SSL_COMP *comp);
|
||||
STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void);
|
||||
__owur STACK_OF(SSL_COMP) *SSL_COMP_set0_compression_methods(STACK_OF(SSL_COMP)
|
||||
*meths);
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# define SSL_COMP_free_compression_methods() while(0) continue
|
||||
# endif
|
||||
__owur int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm);
|
||||
|
||||
const SSL_CIPHER *SSL_CIPHER_find(SSL *ssl, const unsigned char *ptr);
|
||||
int SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *c);
|
||||
int SSL_CIPHER_get_digest_nid(const SSL_CIPHER *c);
|
||||
int SSL_bytes_to_cipher_list(SSL *s, const unsigned char *bytes, size_t len,
|
||||
int isv2format, STACK_OF(SSL_CIPHER) **sk,
|
||||
STACK_OF(SSL_CIPHER) **scsvs);
|
||||
|
||||
/* TLS extensions functions */
|
||||
__owur int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len);
|
||||
|
||||
__owur int SSL_set_session_ticket_ext_cb(SSL *s,
|
||||
tls_session_ticket_ext_cb_fn cb,
|
||||
void *arg);
|
||||
|
||||
/* Pre-shared secret session resumption functions */
|
||||
__owur int SSL_set_session_secret_cb(SSL *s,
|
||||
tls_session_secret_cb_fn session_secret_cb,
|
||||
void *arg);
|
||||
|
||||
void SSL_CTX_set_not_resumable_session_callback(SSL_CTX *ctx,
|
||||
int (*cb) (SSL *ssl,
|
||||
int
|
||||
is_forward_secure));
|
||||
|
||||
void SSL_set_not_resumable_session_callback(SSL *ssl,
|
||||
int (*cb) (SSL *ssl,
|
||||
int is_forward_secure));
|
||||
|
||||
void SSL_CTX_set_record_padding_callback(SSL_CTX *ctx,
|
||||
size_t (*cb) (SSL *ssl, int type,
|
||||
size_t len, void *arg));
|
||||
void SSL_CTX_set_record_padding_callback_arg(SSL_CTX *ctx, void *arg);
|
||||
void *SSL_CTX_get_record_padding_callback_arg(const SSL_CTX *ctx);
|
||||
int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);
|
||||
|
||||
void SSL_set_record_padding_callback(SSL *ssl,
|
||||
size_t (*cb) (SSL *ssl, int type,
|
||||
size_t len, void *arg));
|
||||
void SSL_set_record_padding_callback_arg(SSL *ssl, void *arg);
|
||||
void *SSL_get_record_padding_callback_arg(const SSL *ssl);
|
||||
int SSL_set_block_padding(SSL *ssl, size_t block_size);
|
||||
|
||||
int SSL_set_num_tickets(SSL *s, size_t num_tickets);
|
||||
size_t SSL_get_num_tickets(const SSL *s);
|
||||
int SSL_CTX_set_num_tickets(SSL_CTX *ctx, size_t num_tickets);
|
||||
size_t SSL_CTX_get_num_tickets(const SSL_CTX *ctx);
|
||||
|
||||
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
# define SSL_cache_hit(s) SSL_session_reused(s)
|
||||
# endif
|
||||
|
||||
__owur int SSL_session_reused(const SSL *s);
|
||||
__owur int SSL_is_server(const SSL *s);
|
||||
|
||||
__owur __owur SSL_CONF_CTX *SSL_CONF_CTX_new(void);
|
||||
int SSL_CONF_CTX_finish(SSL_CONF_CTX *cctx);
|
||||
void SSL_CONF_CTX_free(SSL_CONF_CTX *cctx);
|
||||
unsigned int SSL_CONF_CTX_set_flags(SSL_CONF_CTX *cctx, unsigned int flags);
|
||||
__owur unsigned int SSL_CONF_CTX_clear_flags(SSL_CONF_CTX *cctx,
|
||||
unsigned int flags);
|
||||
__owur int SSL_CONF_CTX_set1_prefix(SSL_CONF_CTX *cctx, const char *pre);
|
||||
|
||||
void SSL_CONF_CTX_set_ssl(SSL_CONF_CTX *cctx, SSL *ssl);
|
||||
void SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *cctx, SSL_CTX *ctx);
|
||||
|
||||
__owur int SSL_CONF_cmd(SSL_CONF_CTX *cctx, const char *cmd, const char *value);
|
||||
__owur int SSL_CONF_cmd_argv(SSL_CONF_CTX *cctx, int *pargc, char ***pargv);
|
||||
__owur int SSL_CONF_cmd_value_type(SSL_CONF_CTX *cctx, const char *cmd);
|
||||
|
||||
void SSL_add_ssl_module(void);
|
||||
int SSL_config(SSL *s, const char *name);
|
||||
int SSL_CTX_config(SSL_CTX *ctx, const char *name);
|
||||
|
||||
# ifndef OPENSSL_NO_SSL_TRACE
|
||||
void SSL_trace(int write_p, int version, int content_type,
|
||||
const void *buf, size_t len, SSL *ssl, void *arg);
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_SOCK
|
||||
int DTLSv1_listen(SSL *s, BIO_ADDR *client);
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_CT
|
||||
|
||||
/*
|
||||
* A callback for verifying that the received SCTs are sufficient.
|
||||
* Expected to return 1 if they are sufficient, otherwise 0.
|
||||
* May return a negative integer if an error occurs.
|
||||
* A connection should be aborted if the SCTs are deemed insufficient.
|
||||
*/
|
||||
typedef int (*ssl_ct_validation_cb)(const CT_POLICY_EVAL_CTX *ctx,
|
||||
const STACK_OF(SCT) *scts, void *arg);
|
||||
|
||||
/*
|
||||
* Sets a |callback| that is invoked upon receipt of ServerHelloDone to validate
|
||||
* the received SCTs.
|
||||
* If the callback returns a non-positive result, the connection is terminated.
|
||||
* Call this function before beginning a handshake.
|
||||
* If a NULL |callback| is provided, SCT validation is disabled.
|
||||
* |arg| is arbitrary userdata that will be passed to the callback whenever it
|
||||
* is invoked. Ownership of |arg| remains with the caller.
|
||||
*
|
||||
* NOTE: A side-effect of setting a CT callback is that an OCSP stapled response
|
||||
* will be requested.
|
||||
*/
|
||||
int SSL_set_ct_validation_callback(SSL *s, ssl_ct_validation_cb callback,
|
||||
void *arg);
|
||||
int SSL_CTX_set_ct_validation_callback(SSL_CTX *ctx,
|
||||
ssl_ct_validation_cb callback,
|
||||
void *arg);
|
||||
#define SSL_disable_ct(s) \
|
||||
((void) SSL_set_validation_callback((s), NULL, NULL))
|
||||
#define SSL_CTX_disable_ct(ctx) \
|
||||
((void) SSL_CTX_set_validation_callback((ctx), NULL, NULL))
|
||||
|
||||
/*
|
||||
* The validation type enumerates the available behaviours of the built-in SSL
|
||||
* CT validation callback selected via SSL_enable_ct() and SSL_CTX_enable_ct().
|
||||
* The underlying callback is a static function in libssl.
|
||||
*/
|
||||
enum {
|
||||
SSL_CT_VALIDATION_PERMISSIVE = 0,
|
||||
SSL_CT_VALIDATION_STRICT
|
||||
};
|
||||
|
||||
/*
|
||||
* Enable CT by setting up a callback that implements one of the built-in
|
||||
* validation variants. The SSL_CT_VALIDATION_PERMISSIVE variant always
|
||||
* continues the handshake, the application can make appropriate decisions at
|
||||
* handshake completion. The SSL_CT_VALIDATION_STRICT variant requires at
|
||||
* least one valid SCT, or else handshake termination will be requested. The
|
||||
* handshake may continue anyway if SSL_VERIFY_NONE is in effect.
|
||||
*/
|
||||
int SSL_enable_ct(SSL *s, int validation_mode);
|
||||
int SSL_CTX_enable_ct(SSL_CTX *ctx, int validation_mode);
|
||||
|
||||
/*
|
||||
* Report whether a non-NULL callback is enabled.
|
||||
*/
|
||||
int SSL_ct_is_enabled(const SSL *s);
|
||||
int SSL_CTX_ct_is_enabled(const SSL_CTX *ctx);
|
||||
|
||||
/* Gets the SCTs received from a connection */
|
||||
const STACK_OF(SCT) *SSL_get0_peer_scts(SSL *s);
|
||||
|
||||
/*
|
||||
* Loads the CT log list from the default location.
|
||||
* If a CTLOG_STORE has previously been set using SSL_CTX_set_ctlog_store,
|
||||
* the log information loaded from this file will be appended to the
|
||||
* CTLOG_STORE.
|
||||
* Returns 1 on success, 0 otherwise.
|
||||
*/
|
||||
int SSL_CTX_set_default_ctlog_list_file(SSL_CTX *ctx);
|
||||
|
||||
/*
|
||||
* Loads the CT log list from the specified file path.
|
||||
* If a CTLOG_STORE has previously been set using SSL_CTX_set_ctlog_store,
|
||||
* the log information loaded from this file will be appended to the
|
||||
* CTLOG_STORE.
|
||||
* Returns 1 on success, 0 otherwise.
|
||||
*/
|
||||
int SSL_CTX_set_ctlog_list_file(SSL_CTX *ctx, const char *path);
|
||||
|
||||
/*
|
||||
* Sets the CT log list used by all SSL connections created from this SSL_CTX.
|
||||
* Ownership of the CTLOG_STORE is transferred to the SSL_CTX.
|
||||
*/
|
||||
void SSL_CTX_set0_ctlog_store(SSL_CTX *ctx, CTLOG_STORE *logs);
|
||||
|
||||
/*
|
||||
* Gets the CT log list used by all SSL connections created from this SSL_CTX.
|
||||
* This will be NULL unless one of the following functions has been called:
|
||||
* - SSL_CTX_set_default_ctlog_list_file
|
||||
* - SSL_CTX_set_ctlog_list_file
|
||||
* - SSL_CTX_set_ctlog_store
|
||||
*/
|
||||
const CTLOG_STORE *SSL_CTX_get0_ctlog_store(const SSL_CTX *ctx);
|
||||
|
||||
# endif /* OPENSSL_NO_CT */
|
||||
|
||||
/* What the "other" parameter contains in security callback */
|
||||
/* Mask for type */
|
||||
# define SSL_SECOP_OTHER_TYPE 0xffff0000
|
||||
# define SSL_SECOP_OTHER_NONE 0
|
||||
# define SSL_SECOP_OTHER_CIPHER (1 << 16)
|
||||
# define SSL_SECOP_OTHER_CURVE (2 << 16)
|
||||
# define SSL_SECOP_OTHER_DH (3 << 16)
|
||||
# define SSL_SECOP_OTHER_PKEY (4 << 16)
|
||||
# define SSL_SECOP_OTHER_SIGALG (5 << 16)
|
||||
# define SSL_SECOP_OTHER_CERT (6 << 16)
|
||||
|
||||
/* Indicated operation refers to peer key or certificate */
|
||||
# define SSL_SECOP_PEER 0x1000
|
||||
|
||||
/* Values for "op" parameter in security callback */
|
||||
|
||||
/* Called to filter ciphers */
|
||||
/* Ciphers client supports */
|
||||
# define SSL_SECOP_CIPHER_SUPPORTED (1 | SSL_SECOP_OTHER_CIPHER)
|
||||
/* Cipher shared by client/server */
|
||||
# define SSL_SECOP_CIPHER_SHARED (2 | SSL_SECOP_OTHER_CIPHER)
|
||||
/* Sanity check of cipher server selects */
|
||||
# define SSL_SECOP_CIPHER_CHECK (3 | SSL_SECOP_OTHER_CIPHER)
|
||||
/* Curves supported by client */
|
||||
# define SSL_SECOP_CURVE_SUPPORTED (4 | SSL_SECOP_OTHER_CURVE)
|
||||
/* Curves shared by client/server */
|
||||
# define SSL_SECOP_CURVE_SHARED (5 | SSL_SECOP_OTHER_CURVE)
|
||||
/* Sanity check of curve server selects */
|
||||
# define SSL_SECOP_CURVE_CHECK (6 | SSL_SECOP_OTHER_CURVE)
|
||||
/* Temporary DH key */
|
||||
# define SSL_SECOP_TMP_DH (7 | SSL_SECOP_OTHER_PKEY)
|
||||
/* SSL/TLS version */
|
||||
# define SSL_SECOP_VERSION (9 | SSL_SECOP_OTHER_NONE)
|
||||
/* Session tickets */
|
||||
# define SSL_SECOP_TICKET (10 | SSL_SECOP_OTHER_NONE)
|
||||
/* Supported signature algorithms sent to peer */
|
||||
# define SSL_SECOP_SIGALG_SUPPORTED (11 | SSL_SECOP_OTHER_SIGALG)
|
||||
/* Shared signature algorithm */
|
||||
# define SSL_SECOP_SIGALG_SHARED (12 | SSL_SECOP_OTHER_SIGALG)
|
||||
/* Sanity check signature algorithm allowed */
|
||||
# define SSL_SECOP_SIGALG_CHECK (13 | SSL_SECOP_OTHER_SIGALG)
|
||||
/* Used to get mask of supported public key signature algorithms */
|
||||
# define SSL_SECOP_SIGALG_MASK (14 | SSL_SECOP_OTHER_SIGALG)
|
||||
/* Use to see if compression is allowed */
|
||||
# define SSL_SECOP_COMPRESSION (15 | SSL_SECOP_OTHER_NONE)
|
||||
/* EE key in certificate */
|
||||
# define SSL_SECOP_EE_KEY (16 | SSL_SECOP_OTHER_CERT)
|
||||
/* CA key in certificate */
|
||||
# define SSL_SECOP_CA_KEY (17 | SSL_SECOP_OTHER_CERT)
|
||||
/* CA digest algorithm in certificate */
|
||||
# define SSL_SECOP_CA_MD (18 | SSL_SECOP_OTHER_CERT)
|
||||
/* Peer EE key in certificate */
|
||||
# define SSL_SECOP_PEER_EE_KEY (SSL_SECOP_EE_KEY | SSL_SECOP_PEER)
|
||||
/* Peer CA key in certificate */
|
||||
# define SSL_SECOP_PEER_CA_KEY (SSL_SECOP_CA_KEY | SSL_SECOP_PEER)
|
||||
/* Peer CA digest algorithm in certificate */
|
||||
# define SSL_SECOP_PEER_CA_MD (SSL_SECOP_CA_MD | SSL_SECOP_PEER)
|
||||
|
||||
void SSL_set_security_level(SSL *s, int level);
|
||||
__owur int SSL_get_security_level(const SSL *s);
|
||||
void SSL_set_security_callback(SSL *s,
|
||||
int (*cb) (const SSL *s, const SSL_CTX *ctx,
|
||||
int op, int bits, int nid,
|
||||
void *other, void *ex));
|
||||
int (*SSL_get_security_callback(const SSL *s)) (const SSL *s,
|
||||
const SSL_CTX *ctx, int op,
|
||||
int bits, int nid, void *other,
|
||||
void *ex);
|
||||
void SSL_set0_security_ex_data(SSL *s, void *ex);
|
||||
__owur void *SSL_get0_security_ex_data(const SSL *s);
|
||||
|
||||
void SSL_CTX_set_security_level(SSL_CTX *ctx, int level);
|
||||
__owur int SSL_CTX_get_security_level(const SSL_CTX *ctx);
|
||||
void SSL_CTX_set_security_callback(SSL_CTX *ctx,
|
||||
int (*cb) (const SSL *s, const SSL_CTX *ctx,
|
||||
int op, int bits, int nid,
|
||||
void *other, void *ex));
|
||||
int (*SSL_CTX_get_security_callback(const SSL_CTX *ctx)) (const SSL *s,
|
||||
const SSL_CTX *ctx,
|
||||
int op, int bits,
|
||||
int nid,
|
||||
void *other,
|
||||
void *ex);
|
||||
void SSL_CTX_set0_security_ex_data(SSL_CTX *ctx, void *ex);
|
||||
__owur void *SSL_CTX_get0_security_ex_data(const SSL_CTX *ctx);
|
||||
|
||||
/* OPENSSL_INIT flag 0x010000 reserved for internal use */
|
||||
# define OPENSSL_INIT_NO_LOAD_SSL_STRINGS 0x00100000L
|
||||
# define OPENSSL_INIT_LOAD_SSL_STRINGS 0x00200000L
|
||||
|
||||
# define OPENSSL_INIT_SSL_DEFAULT \
|
||||
(OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS)
|
||||
|
||||
int OPENSSL_init_ssl(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);
|
||||
|
||||
# ifndef OPENSSL_NO_UNIT_TEST
|
||||
__owur const struct openssl_ssl_test_functions *SSL_test_functions(void);
|
||||
# endif
|
||||
|
||||
__owur int SSL_free_buffers(SSL *ssl);
|
||||
__owur int SSL_alloc_buffers(SSL *ssl);
|
||||
|
||||
/* Status codes passed to the decrypt session ticket callback. Some of these
|
||||
* are for internal use only and are never passed to the callback. */
|
||||
typedef int SSL_TICKET_STATUS;
|
||||
|
||||
/* Support for ticket appdata */
|
||||
/* fatal error, malloc failure */
|
||||
# define SSL_TICKET_FATAL_ERR_MALLOC 0
|
||||
/* fatal error, either from parsing or decrypting the ticket */
|
||||
# define SSL_TICKET_FATAL_ERR_OTHER 1
|
||||
/* No ticket present */
|
||||
# define SSL_TICKET_NONE 2
|
||||
/* Empty ticket present */
|
||||
# define SSL_TICKET_EMPTY 3
|
||||
/* the ticket couldn't be decrypted */
|
||||
# define SSL_TICKET_NO_DECRYPT 4
|
||||
/* a ticket was successfully decrypted */
|
||||
# define SSL_TICKET_SUCCESS 5
|
||||
/* same as above but the ticket needs to be renewed */
|
||||
# define SSL_TICKET_SUCCESS_RENEW 6
|
||||
|
||||
/* Return codes for the decrypt session ticket callback */
|
||||
typedef int SSL_TICKET_RETURN;
|
||||
|
||||
/* An error occurred */
|
||||
#define SSL_TICKET_RETURN_ABORT 0
|
||||
/* Do not use the ticket, do not send a renewed ticket to the client */
|
||||
#define SSL_TICKET_RETURN_IGNORE 1
|
||||
/* Do not use the ticket, send a renewed ticket to the client */
|
||||
#define SSL_TICKET_RETURN_IGNORE_RENEW 2
|
||||
/* Use the ticket, do not send a renewed ticket to the client */
|
||||
#define SSL_TICKET_RETURN_USE 3
|
||||
/* Use the ticket, send a renewed ticket to the client */
|
||||
#define SSL_TICKET_RETURN_USE_RENEW 4
|
||||
|
||||
typedef int (*SSL_CTX_generate_session_ticket_fn)(SSL *s, void *arg);
|
||||
typedef SSL_TICKET_RETURN (*SSL_CTX_decrypt_session_ticket_fn)(SSL *s, SSL_SESSION *ss,
|
||||
const unsigned char *keyname,
|
||||
size_t keyname_length,
|
||||
SSL_TICKET_STATUS status,
|
||||
void *arg);
|
||||
int SSL_CTX_set_session_ticket_cb(SSL_CTX *ctx,
|
||||
SSL_CTX_generate_session_ticket_fn gen_cb,
|
||||
SSL_CTX_decrypt_session_ticket_fn dec_cb,
|
||||
void *arg);
|
||||
int SSL_SESSION_set1_ticket_appdata(SSL_SESSION *ss, const void *data, size_t len);
|
||||
int SSL_SESSION_get0_ticket_appdata(SSL_SESSION *ss, void **data, size_t *len);
|
||||
|
||||
typedef unsigned int (*DTLS_timer_cb)(SSL *s, unsigned int timer_us);
|
||||
|
||||
void DTLS_set_timer_cb(SSL *s, DTLS_timer_cb cb);
|
||||
|
||||
|
||||
typedef int (*SSL_allow_early_data_cb_fn)(SSL *s, void *arg);
|
||||
void SSL_CTX_set_allow_early_data_cb(SSL_CTX *ctx,
|
||||
SSL_allow_early_data_cb_fn cb,
|
||||
void *arg);
|
||||
void SSL_set_allow_early_data_cb(SSL *s,
|
||||
SSL_allow_early_data_cb_fn cb,
|
||||
void *arg);
|
||||
|
||||
/* store the default cipher strings inside the library */
|
||||
const char *OSSL_default_cipher_list(void);
|
||||
const char *OSSL_default_ciphersuites(void);
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
@@ -603,8 +603,8 @@ int ERR_load_SSL_strings(void);
|
||||
# define SSL_R_MISSING_TMP_DH_KEY 171
|
||||
# define SSL_R_MISSING_TMP_ECDH_KEY 311
|
||||
# define SSL_R_MIXED_HANDSHAKE_AND_NON_HANDSHAKE_DATA 293
|
||||
# define SSL_R_MIXED_SPECIAL_OPERATOR_WITH_GROUPS 294
|
||||
# define SSL_R_NESTED_GROUP 295
|
||||
# define SSL_R_MIXED_SPECIAL_OPERATOR_WITH_GROUPS 295
|
||||
# define SSL_R_NESTED_GROUP 296
|
||||
# define SSL_R_NOT_ON_RECORD_BOUNDARY 182
|
||||
# define SSL_R_NOT_REPLACING_CERTIFICATE 289
|
||||
# define SSL_R_NOT_SERVER 284
|
||||
@@ -735,9 +735,10 @@ int ERR_load_SSL_strings(void);
|
||||
# define SSL_R_UNABLE_TO_LOAD_SSL3_SHA1_ROUTINES 243
|
||||
# define SSL_R_UNEXPECTED_CCS_MESSAGE 262
|
||||
# define SSL_R_UNEXPECTED_END_OF_EARLY_DATA 178
|
||||
# define SSL_R_UNEXPECTED_GROUP_CLOSE 296
|
||||
# define SSL_R_UNEXPECTED_EOF_WHILE_READING 294
|
||||
# define SSL_R_UNEXPECTED_GROUP_CLOSE 297
|
||||
# define SSL_R_UNEXPECTED_MESSAGE 244
|
||||
# define SSL_R_UNEXPECTED_OPERATOR_IN_GROUP 297
|
||||
# define SSL_R_UNEXPECTED_OPERATOR_IN_GROUP 299
|
||||
# define SSL_R_UNEXPECTED_RECORD 245
|
||||
# define SSL_R_UNINITIALIZED 276
|
||||
# define SSL_R_UNKNOWN_ALERT_TYPE 246
|
||||
|
||||
@@ -327,9 +327,14 @@ __owur int SSL_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain)
|
||||
# define SSL_CTX_get_tlsext_status_type(ssl) \
|
||||
SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)
|
||||
|
||||
# define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
# define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \
|
||||
SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,\
|
||||
(void (*)(void))cb)
|
||||
# endif
|
||||
int SSL_CTX_set_tlsext_ticket_key_evp_cb
|
||||
(SSL_CTX *ctx, int (*fp)(SSL *, unsigned char *, unsigned char *,
|
||||
EVP_CIPHER_CTX *, EVP_MAC_CTX *, int));
|
||||
|
||||
/* PSK ciphersuites from 4279 */
|
||||
# define TLS1_CK_PSK_WITH_RC4_128_SHA 0x0300008A
|
||||
|
||||
@@ -1,1213 +0,0 @@
|
||||
/*
|
||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
||||
* Copyright 2005 Nokia. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#ifndef OPENSSL_TLS1_H
|
||||
# define OPENSSL_TLS1_H
|
||||
# pragma once
|
||||
|
||||
# include <openssl/macros.h>
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
# define HEADER_TLS1_H
|
||||
# endif
|
||||
|
||||
# include <openssl/buffer.h>
|
||||
# include <openssl/x509.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Default security level if not overridden at config time */
|
||||
# ifndef OPENSSL_TLS_SECURITY_LEVEL
|
||||
# define OPENSSL_TLS_SECURITY_LEVEL 1
|
||||
# endif
|
||||
|
||||
# define TLS1_VERSION 0x0301
|
||||
# define TLS1_1_VERSION 0x0302
|
||||
# define TLS1_2_VERSION 0x0303
|
||||
# define TLS1_3_VERSION 0x0304
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
# define TLS_MAX_VERSION TLS1_3_VERSION
|
||||
# endif
|
||||
|
||||
/* Special value for method supporting multiple versions */
|
||||
# define TLS_ANY_VERSION 0x10000
|
||||
|
||||
# define TLS1_VERSION_MAJOR 0x03
|
||||
# define TLS1_VERSION_MINOR 0x01
|
||||
|
||||
# define TLS1_1_VERSION_MAJOR 0x03
|
||||
# define TLS1_1_VERSION_MINOR 0x02
|
||||
|
||||
# define TLS1_2_VERSION_MAJOR 0x03
|
||||
# define TLS1_2_VERSION_MINOR 0x03
|
||||
|
||||
# define TLS1_get_version(s) \
|
||||
((SSL_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_version(s) : 0)
|
||||
|
||||
# define TLS1_get_client_version(s) \
|
||||
((SSL_client_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_client_version(s) : 0)
|
||||
|
||||
# define TLS1_AD_DECRYPTION_FAILED 21
|
||||
# define TLS1_AD_RECORD_OVERFLOW 22
|
||||
# define TLS1_AD_UNKNOWN_CA 48/* fatal */
|
||||
# define TLS1_AD_ACCESS_DENIED 49/* fatal */
|
||||
# define TLS1_AD_DECODE_ERROR 50/* fatal */
|
||||
# define TLS1_AD_DECRYPT_ERROR 51
|
||||
# define TLS1_AD_EXPORT_RESTRICTION 60/* fatal */
|
||||
# define TLS1_AD_PROTOCOL_VERSION 70/* fatal */
|
||||
# define TLS1_AD_INSUFFICIENT_SECURITY 71/* fatal */
|
||||
# define TLS1_AD_INTERNAL_ERROR 80/* fatal */
|
||||
# define TLS1_AD_INAPPROPRIATE_FALLBACK 86/* fatal */
|
||||
# define TLS1_AD_USER_CANCELLED 90
|
||||
# define TLS1_AD_NO_RENEGOTIATION 100
|
||||
/* TLSv1.3 alerts */
|
||||
# define TLS13_AD_MISSING_EXTENSION 109 /* fatal */
|
||||
# define TLS13_AD_CERTIFICATE_REQUIRED 116 /* fatal */
|
||||
/* codes 110-114 are from RFC3546 */
|
||||
# define TLS1_AD_UNSUPPORTED_EXTENSION 110
|
||||
# define TLS1_AD_CERTIFICATE_UNOBTAINABLE 111
|
||||
# define TLS1_AD_UNRECOGNIZED_NAME 112
|
||||
# define TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE 113
|
||||
# define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114
|
||||
# define TLS1_AD_UNKNOWN_PSK_IDENTITY 115/* fatal */
|
||||
# define TLS1_AD_NO_APPLICATION_PROTOCOL 120 /* fatal */
|
||||
|
||||
/* ExtensionType values from RFC3546 / RFC4366 / RFC6066 */
|
||||
# define TLSEXT_TYPE_server_name 0
|
||||
# define TLSEXT_TYPE_max_fragment_length 1
|
||||
# define TLSEXT_TYPE_client_certificate_url 2
|
||||
# define TLSEXT_TYPE_trusted_ca_keys 3
|
||||
# define TLSEXT_TYPE_truncated_hmac 4
|
||||
# define TLSEXT_TYPE_status_request 5
|
||||
/* ExtensionType values from RFC4681 */
|
||||
# define TLSEXT_TYPE_user_mapping 6
|
||||
/* ExtensionType values from RFC5878 */
|
||||
# define TLSEXT_TYPE_client_authz 7
|
||||
# define TLSEXT_TYPE_server_authz 8
|
||||
/* ExtensionType values from RFC6091 */
|
||||
# define TLSEXT_TYPE_cert_type 9
|
||||
|
||||
/* ExtensionType values from RFC4492 */
|
||||
/*
|
||||
* Prior to TLSv1.3 the supported_groups extension was known as
|
||||
* elliptic_curves
|
||||
*/
|
||||
# define TLSEXT_TYPE_supported_groups 10
|
||||
# define TLSEXT_TYPE_elliptic_curves TLSEXT_TYPE_supported_groups
|
||||
# define TLSEXT_TYPE_ec_point_formats 11
|
||||
|
||||
|
||||
/* ExtensionType value from RFC5054 */
|
||||
# define TLSEXT_TYPE_srp 12
|
||||
|
||||
/* ExtensionType values from RFC5246 */
|
||||
# define TLSEXT_TYPE_signature_algorithms 13
|
||||
|
||||
/* ExtensionType value from RFC5764 */
|
||||
# define TLSEXT_TYPE_use_srtp 14
|
||||
|
||||
/* ExtensionType value from RFC7301 */
|
||||
# define TLSEXT_TYPE_application_layer_protocol_negotiation 16
|
||||
|
||||
/*
|
||||
* Extension type for Certificate Transparency
|
||||
* https://tools.ietf.org/html/rfc6962#section-3.3.1
|
||||
*/
|
||||
# define TLSEXT_TYPE_signed_certificate_timestamp 18
|
||||
|
||||
/*
|
||||
* ExtensionType value for TLS padding extension.
|
||||
* http://tools.ietf.org/html/draft-agl-tls-padding
|
||||
*/
|
||||
# define TLSEXT_TYPE_padding 21
|
||||
|
||||
/* ExtensionType value from RFC7366 */
|
||||
# define TLSEXT_TYPE_encrypt_then_mac 22
|
||||
|
||||
/* ExtensionType value from RFC7627 */
|
||||
# define TLSEXT_TYPE_extended_master_secret 23
|
||||
|
||||
/* ExtensionType value from RFC4507 */
|
||||
# define TLSEXT_TYPE_session_ticket 35
|
||||
|
||||
/* As defined for TLS1.3 */
|
||||
# define TLSEXT_TYPE_psk 41
|
||||
# define TLSEXT_TYPE_early_data 42
|
||||
# define TLSEXT_TYPE_supported_versions 43
|
||||
# define TLSEXT_TYPE_cookie 44
|
||||
# define TLSEXT_TYPE_psk_kex_modes 45
|
||||
# define TLSEXT_TYPE_certificate_authorities 47
|
||||
# define TLSEXT_TYPE_post_handshake_auth 49
|
||||
# define TLSEXT_TYPE_signature_algorithms_cert 50
|
||||
# define TLSEXT_TYPE_key_share 51
|
||||
|
||||
/* Temporary extension type */
|
||||
# define TLSEXT_TYPE_renegotiate 0xff01
|
||||
|
||||
# ifndef OPENSSL_NO_NEXTPROTONEG
|
||||
/* This is not an IANA defined extension number */
|
||||
# define TLSEXT_TYPE_next_proto_neg 13172
|
||||
# endif
|
||||
|
||||
/* NameType value from RFC3546 */
|
||||
# define TLSEXT_NAMETYPE_host_name 0
|
||||
/* status request value from RFC3546 */
|
||||
# define TLSEXT_STATUSTYPE_ocsp 1
|
||||
|
||||
/* ECPointFormat values from RFC4492 */
|
||||
# define TLSEXT_ECPOINTFORMAT_first 0
|
||||
# define TLSEXT_ECPOINTFORMAT_uncompressed 0
|
||||
# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_prime 1
|
||||
# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_char2 2
|
||||
# define TLSEXT_ECPOINTFORMAT_last 2
|
||||
|
||||
/* Signature and hash algorithms from RFC5246 */
|
||||
# define TLSEXT_signature_anonymous 0
|
||||
# define TLSEXT_signature_rsa 1
|
||||
# define TLSEXT_signature_dsa 2
|
||||
# define TLSEXT_signature_ecdsa 3
|
||||
# define TLSEXT_signature_gostr34102001 237
|
||||
# define TLSEXT_signature_gostr34102012_256 238
|
||||
# define TLSEXT_signature_gostr34102012_512 239
|
||||
|
||||
/* Total number of different signature algorithms */
|
||||
# define TLSEXT_signature_num 7
|
||||
|
||||
# define TLSEXT_hash_none 0
|
||||
# define TLSEXT_hash_md5 1
|
||||
# define TLSEXT_hash_sha1 2
|
||||
# define TLSEXT_hash_sha224 3
|
||||
# define TLSEXT_hash_sha256 4
|
||||
# define TLSEXT_hash_sha384 5
|
||||
# define TLSEXT_hash_sha512 6
|
||||
# define TLSEXT_hash_gostr3411 237
|
||||
# define TLSEXT_hash_gostr34112012_256 238
|
||||
# define TLSEXT_hash_gostr34112012_512 239
|
||||
|
||||
/* Total number of different digest algorithms */
|
||||
|
||||
# define TLSEXT_hash_num 10
|
||||
|
||||
/* Flag set for unrecognised algorithms */
|
||||
# define TLSEXT_nid_unknown 0x1000000
|
||||
|
||||
/* ECC curves */
|
||||
|
||||
# define TLSEXT_curve_P_256 23
|
||||
# define TLSEXT_curve_P_384 24
|
||||
|
||||
/* OpenSSL value to disable maximum fragment length extension */
|
||||
# define TLSEXT_max_fragment_length_DISABLED 0
|
||||
/* Allowed values for max fragment length extension */
|
||||
# define TLSEXT_max_fragment_length_512 1
|
||||
# define TLSEXT_max_fragment_length_1024 2
|
||||
# define TLSEXT_max_fragment_length_2048 3
|
||||
# define TLSEXT_max_fragment_length_4096 4
|
||||
|
||||
int SSL_CTX_set_tlsext_max_fragment_length(SSL_CTX *ctx, uint8_t mode);
|
||||
int SSL_set_tlsext_max_fragment_length(SSL *ssl, uint8_t mode);
|
||||
|
||||
# define TLSEXT_MAXLEN_host_name 255
|
||||
|
||||
__owur const char *SSL_get_servername(const SSL *s, const int type);
|
||||
__owur int SSL_get_servername_type(const SSL *s);
|
||||
/*
|
||||
* SSL_export_keying_material exports a value derived from the master secret,
|
||||
* as specified in RFC 5705. It writes |olen| bytes to |out| given a label and
|
||||
* optional context. (Since a zero length context is allowed, the |use_context|
|
||||
* flag controls whether a context is included.) It returns 1 on success and
|
||||
* 0 or -1 otherwise.
|
||||
*/
|
||||
__owur int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,
|
||||
const char *label, size_t llen,
|
||||
const unsigned char *context,
|
||||
size_t contextlen, int use_context);
|
||||
|
||||
/*
|
||||
* SSL_export_keying_material_early exports a value derived from the
|
||||
* early exporter master secret, as specified in
|
||||
* https://tools.ietf.org/html/draft-ietf-tls-tls13-23. It writes
|
||||
* |olen| bytes to |out| given a label and optional context. It
|
||||
* returns 1 on success and 0 otherwise.
|
||||
*/
|
||||
__owur int SSL_export_keying_material_early(SSL *s, unsigned char *out,
|
||||
size_t olen, const char *label,
|
||||
size_t llen,
|
||||
const unsigned char *context,
|
||||
size_t contextlen);
|
||||
|
||||
int SSL_get_peer_signature_type_nid(const SSL *s, int *pnid);
|
||||
int SSL_get_signature_type_nid(const SSL *s, int *pnid);
|
||||
|
||||
int SSL_get_sigalgs(SSL *s, int idx,
|
||||
int *psign, int *phash, int *psignandhash,
|
||||
unsigned char *rsig, unsigned char *rhash);
|
||||
|
||||
int SSL_get_shared_sigalgs(SSL *s, int idx,
|
||||
int *psign, int *phash, int *psignandhash,
|
||||
unsigned char *rsig, unsigned char *rhash);
|
||||
|
||||
__owur int SSL_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain);
|
||||
|
||||
# define SSL_set_tlsext_host_name(s,name) \
|
||||
SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name,\
|
||||
(void *)name)
|
||||
|
||||
# define SSL_set_tlsext_debug_callback(ssl, cb) \
|
||||
SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,\
|
||||
(void (*)(void))cb)
|
||||
|
||||
# define SSL_set_tlsext_debug_arg(ssl, arg) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg)
|
||||
|
||||
# define SSL_get_tlsext_status_type(ssl) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)
|
||||
|
||||
# define SSL_set_tlsext_status_type(ssl, type) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)
|
||||
|
||||
# define SSL_get_tlsext_status_exts(ssl, arg) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS,0,arg)
|
||||
|
||||
# define SSL_set_tlsext_status_exts(ssl, arg) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS,0,arg)
|
||||
|
||||
# define SSL_get_tlsext_status_ids(ssl, arg) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS,0,arg)
|
||||
|
||||
# define SSL_set_tlsext_status_ids(ssl, arg) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS,0,arg)
|
||||
|
||||
# define SSL_get_tlsext_status_ocsp_resp(ssl, arg) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP,0,arg)
|
||||
|
||||
# define SSL_set_tlsext_status_ocsp_resp(ssl, arg, arglen) \
|
||||
SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP,arglen,arg)
|
||||
|
||||
# define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \
|
||||
SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_CB,\
|
||||
(void (*)(void))cb)
|
||||
|
||||
# define SSL_TLSEXT_ERR_OK 0
|
||||
# define SSL_TLSEXT_ERR_ALERT_WARNING 1
|
||||
# define SSL_TLSEXT_ERR_ALERT_FATAL 2
|
||||
# define SSL_TLSEXT_ERR_NOACK 3
|
||||
|
||||
# define SSL_CTX_set_tlsext_servername_arg(ctx, arg) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG,0,arg)
|
||||
|
||||
# define SSL_CTX_get_tlsext_ticket_keys(ctx, keys, keylen) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_TLSEXT_TICKET_KEYS,keylen,keys)
|
||||
# define SSL_CTX_set_tlsext_ticket_keys(ctx, keys, keylen) \
|
||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_TICKET_KEYS,keylen,keys)
|
||||
|
||||
# define SSL_CTX_get_tlsext_status_cb(ssl, cb) \
|
||||
SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB,0,(void *)cb)
|
||||
# define SSL_CTX_set_tlsext_status_cb(ssl, cb) \
|
||||
SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB,\
|
||||
(void (*)(void))cb)
|
||||
|
||||
# define SSL_CTX_get_tlsext_status_arg(ssl, arg) \
|
||||
SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG,0,arg)
|
||||
# define SSL_CTX_set_tlsext_status_arg(ssl, arg) \
|
||||
SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG,0,arg)
|
||||
|
||||
# define SSL_CTX_set_tlsext_status_type(ssl, type) \
|
||||
SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)
|
||||
|
||||
# define SSL_CTX_get_tlsext_status_type(ssl) \
|
||||
SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)
|
||||
|
||||
# define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \
|
||||
SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,\
|
||||
(void (*)(void))cb)
|
||||
|
||||
/* PSK ciphersuites from 4279 */
|
||||
# define TLS1_CK_PSK_WITH_RC4_128_SHA 0x0300008A
|
||||
# define TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA 0x0300008B
|
||||
# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA 0x0300008C
|
||||
# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA 0x0300008D
|
||||
# define TLS1_CK_DHE_PSK_WITH_RC4_128_SHA 0x0300008E
|
||||
# define TLS1_CK_DHE_PSK_WITH_3DES_EDE_CBC_SHA 0x0300008F
|
||||
# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA 0x03000090
|
||||
# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA 0x03000091
|
||||
# define TLS1_CK_RSA_PSK_WITH_RC4_128_SHA 0x03000092
|
||||
# define TLS1_CK_RSA_PSK_WITH_3DES_EDE_CBC_SHA 0x03000093
|
||||
# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA 0x03000094
|
||||
# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA 0x03000095
|
||||
|
||||
/* PSK ciphersuites from 5487 */
|
||||
# define TLS1_CK_PSK_WITH_AES_128_GCM_SHA256 0x030000A8
|
||||
# define TLS1_CK_PSK_WITH_AES_256_GCM_SHA384 0x030000A9
|
||||
# define TLS1_CK_DHE_PSK_WITH_AES_128_GCM_SHA256 0x030000AA
|
||||
# define TLS1_CK_DHE_PSK_WITH_AES_256_GCM_SHA384 0x030000AB
|
||||
# define TLS1_CK_RSA_PSK_WITH_AES_128_GCM_SHA256 0x030000AC
|
||||
# define TLS1_CK_RSA_PSK_WITH_AES_256_GCM_SHA384 0x030000AD
|
||||
# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA256 0x030000AE
|
||||
# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA384 0x030000AF
|
||||
# define TLS1_CK_PSK_WITH_NULL_SHA256 0x030000B0
|
||||
# define TLS1_CK_PSK_WITH_NULL_SHA384 0x030000B1
|
||||
# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA256 0x030000B2
|
||||
# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA384 0x030000B3
|
||||
# define TLS1_CK_DHE_PSK_WITH_NULL_SHA256 0x030000B4
|
||||
# define TLS1_CK_DHE_PSK_WITH_NULL_SHA384 0x030000B5
|
||||
# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA256 0x030000B6
|
||||
# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA384 0x030000B7
|
||||
# define TLS1_CK_RSA_PSK_WITH_NULL_SHA256 0x030000B8
|
||||
# define TLS1_CK_RSA_PSK_WITH_NULL_SHA384 0x030000B9
|
||||
|
||||
/* NULL PSK ciphersuites from RFC4785 */
|
||||
# define TLS1_CK_PSK_WITH_NULL_SHA 0x0300002C
|
||||
# define TLS1_CK_DHE_PSK_WITH_NULL_SHA 0x0300002D
|
||||
# define TLS1_CK_RSA_PSK_WITH_NULL_SHA 0x0300002E
|
||||
|
||||
/* AES ciphersuites from RFC3268 */
|
||||
# define TLS1_CK_RSA_WITH_AES_128_SHA 0x0300002F
|
||||
# define TLS1_CK_DH_DSS_WITH_AES_128_SHA 0x03000030
|
||||
# define TLS1_CK_DH_RSA_WITH_AES_128_SHA 0x03000031
|
||||
# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA 0x03000032
|
||||
# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA 0x03000033
|
||||
# define TLS1_CK_ADH_WITH_AES_128_SHA 0x03000034
|
||||
# define TLS1_CK_RSA_WITH_AES_256_SHA 0x03000035
|
||||
# define TLS1_CK_DH_DSS_WITH_AES_256_SHA 0x03000036
|
||||
# define TLS1_CK_DH_RSA_WITH_AES_256_SHA 0x03000037
|
||||
# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA 0x03000038
|
||||
# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA 0x03000039
|
||||
# define TLS1_CK_ADH_WITH_AES_256_SHA 0x0300003A
|
||||
|
||||
/* TLS v1.2 ciphersuites */
|
||||
# define TLS1_CK_RSA_WITH_NULL_SHA256 0x0300003B
|
||||
# define TLS1_CK_RSA_WITH_AES_128_SHA256 0x0300003C
|
||||
# define TLS1_CK_RSA_WITH_AES_256_SHA256 0x0300003D
|
||||
# define TLS1_CK_DH_DSS_WITH_AES_128_SHA256 0x0300003E
|
||||
# define TLS1_CK_DH_RSA_WITH_AES_128_SHA256 0x0300003F
|
||||
# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA256 0x03000040
|
||||
|
||||
/* Camellia ciphersuites from RFC4132 */
|
||||
# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000041
|
||||
# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA 0x03000042
|
||||
# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000043
|
||||
# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA 0x03000044
|
||||
# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000045
|
||||
# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA 0x03000046
|
||||
|
||||
/* TLS v1.2 ciphersuites */
|
||||
# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA256 0x03000067
|
||||
# define TLS1_CK_DH_DSS_WITH_AES_256_SHA256 0x03000068
|
||||
# define TLS1_CK_DH_RSA_WITH_AES_256_SHA256 0x03000069
|
||||
# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA256 0x0300006A
|
||||
# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA256 0x0300006B
|
||||
# define TLS1_CK_ADH_WITH_AES_128_SHA256 0x0300006C
|
||||
# define TLS1_CK_ADH_WITH_AES_256_SHA256 0x0300006D
|
||||
|
||||
/* Camellia ciphersuites from RFC4132 */
|
||||
# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000084
|
||||
# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA 0x03000085
|
||||
# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000086
|
||||
# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA 0x03000087
|
||||
# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000088
|
||||
# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA 0x03000089
|
||||
|
||||
/* SEED ciphersuites from RFC4162 */
|
||||
# define TLS1_CK_RSA_WITH_SEED_SHA 0x03000096
|
||||
# define TLS1_CK_DH_DSS_WITH_SEED_SHA 0x03000097
|
||||
# define TLS1_CK_DH_RSA_WITH_SEED_SHA 0x03000098
|
||||
# define TLS1_CK_DHE_DSS_WITH_SEED_SHA 0x03000099
|
||||
# define TLS1_CK_DHE_RSA_WITH_SEED_SHA 0x0300009A
|
||||
# define TLS1_CK_ADH_WITH_SEED_SHA 0x0300009B
|
||||
|
||||
/* TLS v1.2 GCM ciphersuites from RFC5288 */
|
||||
# define TLS1_CK_RSA_WITH_AES_128_GCM_SHA256 0x0300009C
|
||||
# define TLS1_CK_RSA_WITH_AES_256_GCM_SHA384 0x0300009D
|
||||
# define TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256 0x0300009E
|
||||
# define TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384 0x0300009F
|
||||
# define TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256 0x030000A0
|
||||
# define TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384 0x030000A1
|
||||
# define TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256 0x030000A2
|
||||
# define TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384 0x030000A3
|
||||
# define TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256 0x030000A4
|
||||
# define TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384 0x030000A5
|
||||
# define TLS1_CK_ADH_WITH_AES_128_GCM_SHA256 0x030000A6
|
||||
# define TLS1_CK_ADH_WITH_AES_256_GCM_SHA384 0x030000A7
|
||||
|
||||
/* CCM ciphersuites from RFC6655 */
|
||||
# define TLS1_CK_RSA_WITH_AES_128_CCM 0x0300C09C
|
||||
# define TLS1_CK_RSA_WITH_AES_256_CCM 0x0300C09D
|
||||
# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM 0x0300C09E
|
||||
# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM 0x0300C09F
|
||||
# define TLS1_CK_RSA_WITH_AES_128_CCM_8 0x0300C0A0
|
||||
# define TLS1_CK_RSA_WITH_AES_256_CCM_8 0x0300C0A1
|
||||
# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8 0x0300C0A2
|
||||
# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8 0x0300C0A3
|
||||
# define TLS1_CK_PSK_WITH_AES_128_CCM 0x0300C0A4
|
||||
# define TLS1_CK_PSK_WITH_AES_256_CCM 0x0300C0A5
|
||||
# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM 0x0300C0A6
|
||||
# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM 0x0300C0A7
|
||||
# define TLS1_CK_PSK_WITH_AES_128_CCM_8 0x0300C0A8
|
||||
# define TLS1_CK_PSK_WITH_AES_256_CCM_8 0x0300C0A9
|
||||
# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8 0x0300C0AA
|
||||
# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8 0x0300C0AB
|
||||
|
||||
/* CCM ciphersuites from RFC7251 */
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM 0x0300C0AC
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM 0x0300C0AD
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8 0x0300C0AE
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8 0x0300C0AF
|
||||
|
||||
/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */
|
||||
# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BA
|
||||
# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 0x030000BB
|
||||
# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BC
|
||||
# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 0x030000BD
|
||||
# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BE
|
||||
# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256 0x030000BF
|
||||
|
||||
# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C0
|
||||
# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 0x030000C1
|
||||
# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C2
|
||||
# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 0x030000C3
|
||||
# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C4
|
||||
# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256 0x030000C5
|
||||
|
||||
/* ECC ciphersuites from RFC4492 */
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA 0x0300C001
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA 0x0300C002
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA 0x0300C003
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA 0x0300C004
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA 0x0300C005
|
||||
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA 0x0300C006
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA 0x0300C007
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA 0x0300C008
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA 0x0300C009
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA 0x0300C00A
|
||||
|
||||
# define TLS1_CK_ECDH_RSA_WITH_NULL_SHA 0x0300C00B
|
||||
# define TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA 0x0300C00C
|
||||
# define TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA 0x0300C00D
|
||||
# define TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA 0x0300C00E
|
||||
# define TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA 0x0300C00F
|
||||
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_NULL_SHA 0x0300C010
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA 0x0300C011
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA 0x0300C012
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA 0x0300C013
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA 0x0300C014
|
||||
|
||||
# define TLS1_CK_ECDH_anon_WITH_NULL_SHA 0x0300C015
|
||||
# define TLS1_CK_ECDH_anon_WITH_RC4_128_SHA 0x0300C016
|
||||
# define TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA 0x0300C017
|
||||
# define TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA 0x0300C018
|
||||
# define TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA 0x0300C019
|
||||
|
||||
/* SRP ciphersuites from RFC 5054 */
|
||||
# define TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA 0x0300C01A
|
||||
# define TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA 0x0300C01B
|
||||
# define TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA 0x0300C01C
|
||||
# define TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA 0x0300C01D
|
||||
# define TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA 0x0300C01E
|
||||
# define TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA 0x0300C01F
|
||||
# define TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA 0x0300C020
|
||||
# define TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA 0x0300C021
|
||||
# define TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA 0x0300C022
|
||||
|
||||
/* ECDH HMAC based ciphersuites from RFC5289 */
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256 0x0300C023
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384 0x0300C024
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256 0x0300C025
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384 0x0300C026
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256 0x0300C027
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384 0x0300C028
|
||||
# define TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256 0x0300C029
|
||||
# define TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384 0x0300C02A
|
||||
|
||||
/* ECDH GCM based ciphersuites from RFC5289 */
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 0x0300C02B
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 0x0300C02C
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 0x0300C02D
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 0x0300C02E
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256 0x0300C02F
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384 0x0300C030
|
||||
# define TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256 0x0300C031
|
||||
# define TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384 0x0300C032
|
||||
|
||||
/* ECDHE PSK ciphersuites from RFC5489 */
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_RC4_128_SHA 0x0300C033
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA 0x0300C034
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA 0x0300C035
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA 0x0300C036
|
||||
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA256 0x0300C037
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA384 0x0300C038
|
||||
|
||||
/* NULL PSK ciphersuites from RFC4785 */
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA 0x0300C039
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA256 0x0300C03A
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA384 0x0300C03B
|
||||
|
||||
/* Camellia-CBC ciphersuites from RFC6367 */
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C072
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C073
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C074
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C075
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C076
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C077
|
||||
# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C078
|
||||
# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C079
|
||||
|
||||
# define TLS1_CK_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C094
|
||||
# define TLS1_CK_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C095
|
||||
# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C096
|
||||
# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C097
|
||||
# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C098
|
||||
# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C099
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C09A
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C09B
|
||||
|
||||
/* draft-ietf-tls-chacha20-poly1305-03 */
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305 0x0300CCA8
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 0x0300CCA9
|
||||
# define TLS1_CK_DHE_RSA_WITH_CHACHA20_POLY1305 0x0300CCAA
|
||||
# define TLS1_CK_PSK_WITH_CHACHA20_POLY1305 0x0300CCAB
|
||||
# define TLS1_CK_ECDHE_PSK_WITH_CHACHA20_POLY1305 0x0300CCAC
|
||||
# define TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305 0x0300CCAD
|
||||
# define TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305 0x0300CCAE
|
||||
|
||||
/* TLS v1.3 ciphersuites */
|
||||
# define TLS1_3_CK_AES_128_GCM_SHA256 0x03001301
|
||||
# define TLS1_3_CK_AES_256_GCM_SHA384 0x03001302
|
||||
# define TLS1_3_CK_CHACHA20_POLY1305_SHA256 0x03001303
|
||||
# define TLS1_3_CK_AES_128_CCM_SHA256 0x03001304
|
||||
# define TLS1_3_CK_AES_128_CCM_8_SHA256 0x03001305
|
||||
|
||||
/* Aria ciphersuites from RFC6209 */
|
||||
# define TLS1_CK_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C050
|
||||
# define TLS1_CK_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C051
|
||||
# define TLS1_CK_DHE_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C052
|
||||
# define TLS1_CK_DHE_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C053
|
||||
# define TLS1_CK_DH_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C054
|
||||
# define TLS1_CK_DH_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C055
|
||||
# define TLS1_CK_DHE_DSS_WITH_ARIA_128_GCM_SHA256 0x0300C056
|
||||
# define TLS1_CK_DHE_DSS_WITH_ARIA_256_GCM_SHA384 0x0300C057
|
||||
# define TLS1_CK_DH_DSS_WITH_ARIA_128_GCM_SHA256 0x0300C058
|
||||
# define TLS1_CK_DH_DSS_WITH_ARIA_256_GCM_SHA384 0x0300C059
|
||||
# define TLS1_CK_DH_anon_WITH_ARIA_128_GCM_SHA256 0x0300C05A
|
||||
# define TLS1_CK_DH_anon_WITH_ARIA_256_GCM_SHA384 0x0300C05B
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 0x0300C05C
|
||||
# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 0x0300C05D
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 0x0300C05E
|
||||
# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 0x0300C05F
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C060
|
||||
# define TLS1_CK_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C061
|
||||
# define TLS1_CK_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C062
|
||||
# define TLS1_CK_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C063
|
||||
# define TLS1_CK_PSK_WITH_ARIA_128_GCM_SHA256 0x0300C06A
|
||||
# define TLS1_CK_PSK_WITH_ARIA_256_GCM_SHA384 0x0300C06B
|
||||
# define TLS1_CK_DHE_PSK_WITH_ARIA_128_GCM_SHA256 0x0300C06C
|
||||
# define TLS1_CK_DHE_PSK_WITH_ARIA_256_GCM_SHA384 0x0300C06D
|
||||
# define TLS1_CK_RSA_PSK_WITH_ARIA_128_GCM_SHA256 0x0300C06E
|
||||
# define TLS1_CK_RSA_PSK_WITH_ARIA_256_GCM_SHA384 0x0300C06F
|
||||
|
||||
/* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] */
|
||||
# define TLS1_RFC_RSA_WITH_AES_128_SHA "TLS_RSA_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA "TLS_DHE_DSS_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA "TLS_DHE_RSA_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_ADH_WITH_AES_128_SHA "TLS_DH_anon_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_RSA_WITH_AES_256_SHA "TLS_RSA_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA "TLS_DHE_DSS_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA "TLS_DHE_RSA_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_ADH_WITH_AES_256_SHA "TLS_DH_anon_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_RSA_WITH_NULL_SHA256 "TLS_RSA_WITH_NULL_SHA256"
|
||||
# define TLS1_RFC_RSA_WITH_AES_128_SHA256 "TLS_RSA_WITH_AES_128_CBC_SHA256"
|
||||
# define TLS1_RFC_RSA_WITH_AES_256_SHA256 "TLS_RSA_WITH_AES_256_CBC_SHA256"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA256 "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA256 "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA256 "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA256 "TLS_DHE_RSA_WITH_AES_256_CBC_SHA256"
|
||||
# define TLS1_RFC_ADH_WITH_AES_128_SHA256 "TLS_DH_anon_WITH_AES_128_CBC_SHA256"
|
||||
# define TLS1_RFC_ADH_WITH_AES_256_SHA256 "TLS_DH_anon_WITH_AES_256_CBC_SHA256"
|
||||
# define TLS1_RFC_RSA_WITH_AES_128_GCM_SHA256 "TLS_RSA_WITH_AES_128_GCM_SHA256"
|
||||
# define TLS1_RFC_RSA_WITH_AES_256_GCM_SHA384 "TLS_RSA_WITH_AES_256_GCM_SHA384"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_AES_128_GCM_SHA256 "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_AES_256_GCM_SHA384 "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_AES_128_GCM_SHA256 "TLS_DHE_DSS_WITH_AES_128_GCM_SHA256"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_AES_256_GCM_SHA384 "TLS_DHE_DSS_WITH_AES_256_GCM_SHA384"
|
||||
# define TLS1_RFC_ADH_WITH_AES_128_GCM_SHA256 "TLS_DH_anon_WITH_AES_128_GCM_SHA256"
|
||||
# define TLS1_RFC_ADH_WITH_AES_256_GCM_SHA384 "TLS_DH_anon_WITH_AES_256_GCM_SHA384"
|
||||
# define TLS1_RFC_RSA_WITH_AES_128_CCM "TLS_RSA_WITH_AES_128_CCM"
|
||||
# define TLS1_RFC_RSA_WITH_AES_256_CCM "TLS_RSA_WITH_AES_256_CCM"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM "TLS_DHE_RSA_WITH_AES_128_CCM"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM "TLS_DHE_RSA_WITH_AES_256_CCM"
|
||||
# define TLS1_RFC_RSA_WITH_AES_128_CCM_8 "TLS_RSA_WITH_AES_128_CCM_8"
|
||||
# define TLS1_RFC_RSA_WITH_AES_256_CCM_8 "TLS_RSA_WITH_AES_256_CCM_8"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM_8 "TLS_DHE_RSA_WITH_AES_128_CCM_8"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM_8 "TLS_DHE_RSA_WITH_AES_256_CCM_8"
|
||||
# define TLS1_RFC_PSK_WITH_AES_128_CCM "TLS_PSK_WITH_AES_128_CCM"
|
||||
# define TLS1_RFC_PSK_WITH_AES_256_CCM "TLS_PSK_WITH_AES_256_CCM"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM "TLS_DHE_PSK_WITH_AES_128_CCM"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM "TLS_DHE_PSK_WITH_AES_256_CCM"
|
||||
# define TLS1_RFC_PSK_WITH_AES_128_CCM_8 "TLS_PSK_WITH_AES_128_CCM_8"
|
||||
# define TLS1_RFC_PSK_WITH_AES_256_CCM_8 "TLS_PSK_WITH_AES_256_CCM_8"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM_8 "TLS_PSK_DHE_WITH_AES_128_CCM_8"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM_8 "TLS_PSK_DHE_WITH_AES_256_CCM_8"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM "TLS_ECDHE_ECDSA_WITH_AES_128_CCM"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM "TLS_ECDHE_ECDSA_WITH_AES_256_CCM"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM_8 "TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM_8 "TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8"
|
||||
# define TLS1_3_RFC_AES_128_GCM_SHA256 "TLS_AES_128_GCM_SHA256"
|
||||
# define TLS1_3_RFC_AES_256_GCM_SHA384 "TLS_AES_256_GCM_SHA384"
|
||||
# define TLS1_3_RFC_CHACHA20_POLY1305_SHA256 "TLS_CHACHA20_POLY1305_SHA256"
|
||||
# define TLS1_3_RFC_AES_128_CCM_SHA256 "TLS_AES_128_CCM_SHA256"
|
||||
# define TLS1_3_RFC_AES_128_CCM_8_SHA256 "TLS_AES_128_CCM_8_SHA256"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_NULL_SHA "TLS_ECDHE_ECDSA_WITH_NULL_SHA"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CBC_SHA "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CBC_SHA "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_NULL_SHA "TLS_ECDHE_RSA_WITH_NULL_SHA"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_DES_192_CBC3_SHA "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_CBC_SHA "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_CBC_SHA "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_ECDH_anon_WITH_NULL_SHA "TLS_ECDH_anon_WITH_NULL_SHA"
|
||||
# define TLS1_RFC_ECDH_anon_WITH_DES_192_CBC3_SHA "TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA"
|
||||
# define TLS1_RFC_ECDH_anon_WITH_AES_128_CBC_SHA "TLS_ECDH_anon_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_ECDH_anon_WITH_AES_256_CBC_SHA "TLS_ECDH_anon_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_SHA256 "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_SHA384 "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_SHA256 "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_SHA384 "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_GCM_SHA256 "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_GCM_SHA384 "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
|
||||
# define TLS1_RFC_PSK_WITH_NULL_SHA "TLS_PSK_WITH_NULL_SHA"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA "TLS_DHE_PSK_WITH_NULL_SHA"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA "TLS_RSA_PSK_WITH_NULL_SHA"
|
||||
# define TLS1_RFC_PSK_WITH_3DES_EDE_CBC_SHA "TLS_PSK_WITH_3DES_EDE_CBC_SHA"
|
||||
# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA "TLS_PSK_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA "TLS_PSK_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_3DES_EDE_CBC_SHA "TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA "TLS_DHE_PSK_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA "TLS_DHE_PSK_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_3DES_EDE_CBC_SHA "TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA "TLS_RSA_PSK_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA "TLS_RSA_PSK_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_PSK_WITH_AES_128_GCM_SHA256 "TLS_PSK_WITH_AES_128_GCM_SHA256"
|
||||
# define TLS1_RFC_PSK_WITH_AES_256_GCM_SHA384 "TLS_PSK_WITH_AES_256_GCM_SHA384"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_AES_128_GCM_SHA256 "TLS_DHE_PSK_WITH_AES_128_GCM_SHA256"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_AES_256_GCM_SHA384 "TLS_DHE_PSK_WITH_AES_256_GCM_SHA384"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_AES_128_GCM_SHA256 "TLS_RSA_PSK_WITH_AES_128_GCM_SHA256"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_AES_256_GCM_SHA384 "TLS_RSA_PSK_WITH_AES_256_GCM_SHA384"
|
||||
# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA256 "TLS_PSK_WITH_AES_128_CBC_SHA256"
|
||||
# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA384 "TLS_PSK_WITH_AES_256_CBC_SHA384"
|
||||
# define TLS1_RFC_PSK_WITH_NULL_SHA256 "TLS_PSK_WITH_NULL_SHA256"
|
||||
# define TLS1_RFC_PSK_WITH_NULL_SHA384 "TLS_PSK_WITH_NULL_SHA384"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA256 "TLS_DHE_PSK_WITH_AES_128_CBC_SHA256"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA384 "TLS_DHE_PSK_WITH_AES_256_CBC_SHA384"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA256 "TLS_DHE_PSK_WITH_NULL_SHA256"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA384 "TLS_DHE_PSK_WITH_NULL_SHA384"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA256 "TLS_RSA_PSK_WITH_AES_128_CBC_SHA256"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA384 "TLS_RSA_PSK_WITH_AES_256_CBC_SHA384"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA256 "TLS_RSA_PSK_WITH_NULL_SHA256"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA384 "TLS_RSA_PSK_WITH_NULL_SHA384"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA "TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA "TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA "TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA256 "TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA384 "TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA "TLS_ECDHE_PSK_WITH_NULL_SHA"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA256 "TLS_ECDHE_PSK_WITH_NULL_SHA256"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA384 "TLS_ECDHE_PSK_WITH_NULL_SHA384"
|
||||
# define TLS1_RFC_SRP_SHA_WITH_3DES_EDE_CBC_SHA "TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA"
|
||||
# define TLS1_RFC_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA "TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA"
|
||||
# define TLS1_RFC_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA "TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA"
|
||||
# define TLS1_RFC_SRP_SHA_WITH_AES_128_CBC_SHA "TLS_SRP_SHA_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_128_CBC_SHA "TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_128_CBC_SHA "TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA"
|
||||
# define TLS1_RFC_SRP_SHA_WITH_AES_256_CBC_SHA "TLS_SRP_SHA_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_256_CBC_SHA "TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_256_CBC_SHA "TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_CHACHA20_POLY1305 "TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_CHACHA20_POLY1305 "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
|
||||
# define TLS1_RFC_PSK_WITH_CHACHA20_POLY1305 "TLS_PSK_WITH_CHACHA20_POLY1305_SHA256"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_CHACHA20_POLY1305 "TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_CHACHA20_POLY1305 "TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_CHACHA20_POLY1305 "TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256"
|
||||
# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256"
|
||||
# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256"
|
||||
# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA256 "TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 "TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 "TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256"
|
||||
# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA256 "TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256"
|
||||
# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA "TLS_RSA_WITH_CAMELLIA_256_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA "TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA "TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA"
|
||||
# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA "TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA"
|
||||
# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA "TLS_RSA_WITH_CAMELLIA_128_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA "TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA "TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA"
|
||||
# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA "TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 "TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 "TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384"
|
||||
# define TLS1_RFC_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256"
|
||||
# define TLS1_RFC_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384"
|
||||
# define TLS1_RFC_RSA_WITH_SEED_SHA "TLS_RSA_WITH_SEED_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_SEED_SHA "TLS_DHE_DSS_WITH_SEED_CBC_SHA"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_SEED_SHA "TLS_DHE_RSA_WITH_SEED_CBC_SHA"
|
||||
# define TLS1_RFC_ADH_WITH_SEED_SHA "TLS_DH_anon_WITH_SEED_CBC_SHA"
|
||||
# define TLS1_RFC_ECDHE_PSK_WITH_RC4_128_SHA "TLS_ECDHE_PSK_WITH_RC4_128_SHA"
|
||||
# define TLS1_RFC_ECDH_anon_WITH_RC4_128_SHA "TLS_ECDH_anon_WITH_RC4_128_SHA"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_RC4_128_SHA "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_RC4_128_SHA "TLS_ECDHE_RSA_WITH_RC4_128_SHA"
|
||||
# define TLS1_RFC_PSK_WITH_RC4_128_SHA "TLS_PSK_WITH_RC4_128_SHA"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_RC4_128_SHA "TLS_RSA_PSK_WITH_RC4_128_SHA"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_RC4_128_SHA "TLS_DHE_PSK_WITH_RC4_128_SHA"
|
||||
# define TLS1_RFC_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_RSA_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_RSA_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_DHE_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_DH_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_DH_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_ARIA_128_GCM_SHA256 "TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_DHE_DSS_WITH_ARIA_256_GCM_SHA384 "TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_DH_DSS_WITH_ARIA_128_GCM_SHA256 "TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_DH_DSS_WITH_ARIA_256_GCM_SHA384 "TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_DH_anon_WITH_ARIA_128_GCM_SHA256 "TLS_DH_anon_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_DH_anon_WITH_ARIA_256_GCM_SHA384 "TLS_DH_anon_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_PSK_WITH_ARIA_128_GCM_SHA256 "TLS_PSK_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_PSK_WITH_ARIA_256_GCM_SHA384 "TLS_PSK_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_ARIA_128_GCM_SHA256 "TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_DHE_PSK_WITH_ARIA_256_GCM_SHA384 "TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_ARIA_128_GCM_SHA256 "TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256"
|
||||
# define TLS1_RFC_RSA_PSK_WITH_ARIA_256_GCM_SHA384 "TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384"
|
||||
|
||||
|
||||
/*
|
||||
* XXX Backward compatibility alert: Older versions of OpenSSL gave some DHE
|
||||
* ciphers names with "EDH" instead of "DHE". Going forward, we should be
|
||||
* using DHE everywhere, though we may indefinitely maintain aliases for
|
||||
* users or configurations that used "EDH"
|
||||
*/
|
||||
# define TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA "DHE-DSS-RC4-SHA"
|
||||
|
||||
# define TLS1_TXT_PSK_WITH_NULL_SHA "PSK-NULL-SHA"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA "DHE-PSK-NULL-SHA"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA "RSA-PSK-NULL-SHA"
|
||||
|
||||
/* AES ciphersuites from RFC3268 */
|
||||
# define TLS1_TXT_RSA_WITH_AES_128_SHA "AES128-SHA"
|
||||
# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA "DH-DSS-AES128-SHA"
|
||||
# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA "DH-RSA-AES128-SHA"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA "DHE-DSS-AES128-SHA"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA "DHE-RSA-AES128-SHA"
|
||||
# define TLS1_TXT_ADH_WITH_AES_128_SHA "ADH-AES128-SHA"
|
||||
|
||||
# define TLS1_TXT_RSA_WITH_AES_256_SHA "AES256-SHA"
|
||||
# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA "DH-DSS-AES256-SHA"
|
||||
# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA "DH-RSA-AES256-SHA"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA "DHE-DSS-AES256-SHA"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA "DHE-RSA-AES256-SHA"
|
||||
# define TLS1_TXT_ADH_WITH_AES_256_SHA "ADH-AES256-SHA"
|
||||
|
||||
/* ECC ciphersuites from RFC4492 */
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA "ECDH-ECDSA-NULL-SHA"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA "ECDH-ECDSA-RC4-SHA"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA "ECDH-ECDSA-DES-CBC3-SHA"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA "ECDH-ECDSA-AES128-SHA"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA "ECDH-ECDSA-AES256-SHA"
|
||||
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA "ECDHE-ECDSA-NULL-SHA"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA "ECDHE-ECDSA-RC4-SHA"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA "ECDHE-ECDSA-DES-CBC3-SHA"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA "ECDHE-ECDSA-AES128-SHA"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA "ECDHE-ECDSA-AES256-SHA"
|
||||
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_NULL_SHA "ECDH-RSA-NULL-SHA"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA "ECDH-RSA-RC4-SHA"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA "ECDH-RSA-DES-CBC3-SHA"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA "ECDH-RSA-AES128-SHA"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA "ECDH-RSA-AES256-SHA"
|
||||
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA "ECDHE-RSA-NULL-SHA"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA "ECDHE-RSA-RC4-SHA"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA "ECDHE-RSA-DES-CBC3-SHA"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA "ECDHE-RSA-AES128-SHA"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA "ECDHE-RSA-AES256-SHA"
|
||||
|
||||
# define TLS1_TXT_ECDH_anon_WITH_NULL_SHA "AECDH-NULL-SHA"
|
||||
# define TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA "AECDH-RC4-SHA"
|
||||
# define TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA "AECDH-DES-CBC3-SHA"
|
||||
# define TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA "AECDH-AES128-SHA"
|
||||
# define TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA "AECDH-AES256-SHA"
|
||||
|
||||
/* PSK ciphersuites from RFC 4279 */
|
||||
# define TLS1_TXT_PSK_WITH_RC4_128_SHA "PSK-RC4-SHA"
|
||||
# define TLS1_TXT_PSK_WITH_3DES_EDE_CBC_SHA "PSK-3DES-EDE-CBC-SHA"
|
||||
# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA "PSK-AES128-CBC-SHA"
|
||||
# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA "PSK-AES256-CBC-SHA"
|
||||
|
||||
# define TLS1_TXT_DHE_PSK_WITH_RC4_128_SHA "DHE-PSK-RC4-SHA"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_3DES_EDE_CBC_SHA "DHE-PSK-3DES-EDE-CBC-SHA"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA "DHE-PSK-AES128-CBC-SHA"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA "DHE-PSK-AES256-CBC-SHA"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_RC4_128_SHA "RSA-PSK-RC4-SHA"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_3DES_EDE_CBC_SHA "RSA-PSK-3DES-EDE-CBC-SHA"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA "RSA-PSK-AES128-CBC-SHA"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA "RSA-PSK-AES256-CBC-SHA"
|
||||
|
||||
/* PSK ciphersuites from RFC 5487 */
|
||||
# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256 "PSK-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384 "PSK-AES256-GCM-SHA384"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_AES_128_GCM_SHA256 "DHE-PSK-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_AES_256_GCM_SHA384 "DHE-PSK-AES256-GCM-SHA384"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_AES_128_GCM_SHA256 "RSA-PSK-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_AES_256_GCM_SHA384 "RSA-PSK-AES256-GCM-SHA384"
|
||||
|
||||
# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA256 "PSK-AES128-CBC-SHA256"
|
||||
# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA384 "PSK-AES256-CBC-SHA384"
|
||||
# define TLS1_TXT_PSK_WITH_NULL_SHA256 "PSK-NULL-SHA256"
|
||||
# define TLS1_TXT_PSK_WITH_NULL_SHA384 "PSK-NULL-SHA384"
|
||||
|
||||
# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA256 "DHE-PSK-AES128-CBC-SHA256"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA384 "DHE-PSK-AES256-CBC-SHA384"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA256 "DHE-PSK-NULL-SHA256"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA384 "DHE-PSK-NULL-SHA384"
|
||||
|
||||
# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA256 "RSA-PSK-AES128-CBC-SHA256"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA384 "RSA-PSK-AES256-CBC-SHA384"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA256 "RSA-PSK-NULL-SHA256"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA384 "RSA-PSK-NULL-SHA384"
|
||||
|
||||
/* SRP ciphersuite from RFC 5054 */
|
||||
# define TLS1_TXT_SRP_SHA_WITH_3DES_EDE_CBC_SHA "SRP-3DES-EDE-CBC-SHA"
|
||||
# define TLS1_TXT_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA "SRP-RSA-3DES-EDE-CBC-SHA"
|
||||
# define TLS1_TXT_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA "SRP-DSS-3DES-EDE-CBC-SHA"
|
||||
# define TLS1_TXT_SRP_SHA_WITH_AES_128_CBC_SHA "SRP-AES-128-CBC-SHA"
|
||||
# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_128_CBC_SHA "SRP-RSA-AES-128-CBC-SHA"
|
||||
# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_128_CBC_SHA "SRP-DSS-AES-128-CBC-SHA"
|
||||
# define TLS1_TXT_SRP_SHA_WITH_AES_256_CBC_SHA "SRP-AES-256-CBC-SHA"
|
||||
# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_256_CBC_SHA "SRP-RSA-AES-256-CBC-SHA"
|
||||
# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_256_CBC_SHA "SRP-DSS-AES-256-CBC-SHA"
|
||||
|
||||
/* Camellia ciphersuites from RFC4132 */
|
||||
# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA "CAMELLIA128-SHA"
|
||||
# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA "DH-DSS-CAMELLIA128-SHA"
|
||||
# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA "DH-RSA-CAMELLIA128-SHA"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA "DHE-DSS-CAMELLIA128-SHA"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA "DHE-RSA-CAMELLIA128-SHA"
|
||||
# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA "ADH-CAMELLIA128-SHA"
|
||||
|
||||
# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA "CAMELLIA256-SHA"
|
||||
# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA "DH-DSS-CAMELLIA256-SHA"
|
||||
# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA "DH-RSA-CAMELLIA256-SHA"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA "DHE-DSS-CAMELLIA256-SHA"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA "DHE-RSA-CAMELLIA256-SHA"
|
||||
# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA "ADH-CAMELLIA256-SHA"
|
||||
|
||||
/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */
|
||||
# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA256 "CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 "DH-DSS-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 "DH-RSA-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 "DHE-DSS-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "DHE-RSA-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA256 "ADH-CAMELLIA128-SHA256"
|
||||
|
||||
# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA256 "CAMELLIA256-SHA256"
|
||||
# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 "DH-DSS-CAMELLIA256-SHA256"
|
||||
# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 "DH-RSA-CAMELLIA256-SHA256"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 "DHE-DSS-CAMELLIA256-SHA256"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 "DHE-RSA-CAMELLIA256-SHA256"
|
||||
# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA256 "ADH-CAMELLIA256-SHA256"
|
||||
|
||||
# define TLS1_TXT_PSK_WITH_CAMELLIA_128_CBC_SHA256 "PSK-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_PSK_WITH_CAMELLIA_256_CBC_SHA384 "PSK-CAMELLIA256-SHA384"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "DHE-PSK-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "DHE-PSK-CAMELLIA256-SHA384"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 "RSA-PSK-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 "RSA-PSK-CAMELLIA256-SHA384"
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "ECDHE-PSK-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "ECDHE-PSK-CAMELLIA256-SHA384"
|
||||
|
||||
/* SEED ciphersuites from RFC4162 */
|
||||
# define TLS1_TXT_RSA_WITH_SEED_SHA "SEED-SHA"
|
||||
# define TLS1_TXT_DH_DSS_WITH_SEED_SHA "DH-DSS-SEED-SHA"
|
||||
# define TLS1_TXT_DH_RSA_WITH_SEED_SHA "DH-RSA-SEED-SHA"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_SEED_SHA "DHE-DSS-SEED-SHA"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_SEED_SHA "DHE-RSA-SEED-SHA"
|
||||
# define TLS1_TXT_ADH_WITH_SEED_SHA "ADH-SEED-SHA"
|
||||
|
||||
/* TLS v1.2 ciphersuites */
|
||||
# define TLS1_TXT_RSA_WITH_NULL_SHA256 "NULL-SHA256"
|
||||
# define TLS1_TXT_RSA_WITH_AES_128_SHA256 "AES128-SHA256"
|
||||
# define TLS1_TXT_RSA_WITH_AES_256_SHA256 "AES256-SHA256"
|
||||
# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA256 "DH-DSS-AES128-SHA256"
|
||||
# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA256 "DH-RSA-AES128-SHA256"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA256 "DHE-DSS-AES128-SHA256"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA256 "DHE-RSA-AES128-SHA256"
|
||||
# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA256 "DH-DSS-AES256-SHA256"
|
||||
# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA256 "DH-RSA-AES256-SHA256"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA256 "DHE-DSS-AES256-SHA256"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA256 "DHE-RSA-AES256-SHA256"
|
||||
# define TLS1_TXT_ADH_WITH_AES_128_SHA256 "ADH-AES128-SHA256"
|
||||
# define TLS1_TXT_ADH_WITH_AES_256_SHA256 "ADH-AES256-SHA256"
|
||||
|
||||
/* TLS v1.2 GCM ciphersuites from RFC5288 */
|
||||
# define TLS1_TXT_RSA_WITH_AES_128_GCM_SHA256 "AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_RSA_WITH_AES_256_GCM_SHA384 "AES256-GCM-SHA384"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_AES_128_GCM_SHA256 "DHE-RSA-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_AES_256_GCM_SHA384 "DHE-RSA-AES256-GCM-SHA384"
|
||||
# define TLS1_TXT_DH_RSA_WITH_AES_128_GCM_SHA256 "DH-RSA-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_DH_RSA_WITH_AES_256_GCM_SHA384 "DH-RSA-AES256-GCM-SHA384"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_AES_128_GCM_SHA256 "DHE-DSS-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_AES_256_GCM_SHA384 "DHE-DSS-AES256-GCM-SHA384"
|
||||
# define TLS1_TXT_DH_DSS_WITH_AES_128_GCM_SHA256 "DH-DSS-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_DH_DSS_WITH_AES_256_GCM_SHA384 "DH-DSS-AES256-GCM-SHA384"
|
||||
# define TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256 "ADH-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384 "ADH-AES256-GCM-SHA384"
|
||||
|
||||
/* CCM ciphersuites from RFC6655 */
|
||||
# define TLS1_TXT_RSA_WITH_AES_128_CCM "AES128-CCM"
|
||||
# define TLS1_TXT_RSA_WITH_AES_256_CCM "AES256-CCM"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM "DHE-RSA-AES128-CCM"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM "DHE-RSA-AES256-CCM"
|
||||
|
||||
# define TLS1_TXT_RSA_WITH_AES_128_CCM_8 "AES128-CCM8"
|
||||
# define TLS1_TXT_RSA_WITH_AES_256_CCM_8 "AES256-CCM8"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM_8 "DHE-RSA-AES128-CCM8"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM_8 "DHE-RSA-AES256-CCM8"
|
||||
|
||||
# define TLS1_TXT_PSK_WITH_AES_128_CCM "PSK-AES128-CCM"
|
||||
# define TLS1_TXT_PSK_WITH_AES_256_CCM "PSK-AES256-CCM"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM "DHE-PSK-AES128-CCM"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM "DHE-PSK-AES256-CCM"
|
||||
|
||||
# define TLS1_TXT_PSK_WITH_AES_128_CCM_8 "PSK-AES128-CCM8"
|
||||
# define TLS1_TXT_PSK_WITH_AES_256_CCM_8 "PSK-AES256-CCM8"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM_8 "DHE-PSK-AES128-CCM8"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM_8 "DHE-PSK-AES256-CCM8"
|
||||
|
||||
/* CCM ciphersuites from RFC7251 */
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM "ECDHE-ECDSA-AES128-CCM"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM "ECDHE-ECDSA-AES256-CCM"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM_8 "ECDHE-ECDSA-AES128-CCM8"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM_8 "ECDHE-ECDSA-AES256-CCM8"
|
||||
|
||||
/* ECDH HMAC based ciphersuites from RFC5289 */
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256 "ECDHE-ECDSA-AES128-SHA256"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_SHA384 "ECDHE-ECDSA-AES256-SHA384"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_SHA256 "ECDH-ECDSA-AES128-SHA256"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_SHA384 "ECDH-ECDSA-AES256-SHA384"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_SHA256 "ECDHE-RSA-AES128-SHA256"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_SHA384 "ECDHE-RSA-AES256-SHA384"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_AES_128_SHA256 "ECDH-RSA-AES128-SHA256"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_AES_256_SHA384 "ECDH-RSA-AES256-SHA384"
|
||||
|
||||
/* ECDH GCM based ciphersuites from RFC5289 */
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 "ECDHE-ECDSA-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 "ECDHE-ECDSA-AES256-GCM-SHA384"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 "ECDH-ECDSA-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 "ECDH-ECDSA-AES256-GCM-SHA384"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256 "ECDHE-RSA-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384 "ECDHE-RSA-AES256-GCM-SHA384"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256 "ECDH-RSA-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384 "ECDH-RSA-AES256-GCM-SHA384"
|
||||
|
||||
/* TLS v1.2 PSK GCM ciphersuites from RFC5487 */
|
||||
# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256 "PSK-AES128-GCM-SHA256"
|
||||
# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384 "PSK-AES256-GCM-SHA384"
|
||||
|
||||
/* ECDHE PSK ciphersuites from RFC 5489 */
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_RC4_128_SHA "ECDHE-PSK-RC4-SHA"
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA "ECDHE-PSK-3DES-EDE-CBC-SHA"
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA "ECDHE-PSK-AES128-CBC-SHA"
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA "ECDHE-PSK-AES256-CBC-SHA"
|
||||
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA256 "ECDHE-PSK-AES128-CBC-SHA256"
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA384 "ECDHE-PSK-AES256-CBC-SHA384"
|
||||
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA "ECDHE-PSK-NULL-SHA"
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA256 "ECDHE-PSK-NULL-SHA256"
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA384 "ECDHE-PSK-NULL-SHA384"
|
||||
|
||||
/* Camellia-CBC ciphersuites from RFC6367 */
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDHE-ECDSA-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDHE-ECDSA-CAMELLIA256-SHA384"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDH-ECDSA-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDH-ECDSA-CAMELLIA256-SHA384"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDHE-RSA-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDHE-RSA-CAMELLIA256-SHA384"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDH-RSA-CAMELLIA128-SHA256"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDH-RSA-CAMELLIA256-SHA384"
|
||||
|
||||
/* draft-ietf-tls-chacha20-poly1305-03 */
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305 "ECDHE-RSA-CHACHA20-POLY1305"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 "ECDHE-ECDSA-CHACHA20-POLY1305"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_CHACHA20_POLY1305 "DHE-RSA-CHACHA20-POLY1305"
|
||||
# define TLS1_TXT_PSK_WITH_CHACHA20_POLY1305 "PSK-CHACHA20-POLY1305"
|
||||
# define TLS1_TXT_ECDHE_PSK_WITH_CHACHA20_POLY1305 "ECDHE-PSK-CHACHA20-POLY1305"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_CHACHA20_POLY1305 "DHE-PSK-CHACHA20-POLY1305"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_CHACHA20_POLY1305 "RSA-PSK-CHACHA20-POLY1305"
|
||||
|
||||
/* Aria ciphersuites from RFC6209 */
|
||||
# define TLS1_TXT_RSA_WITH_ARIA_128_GCM_SHA256 "ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_RSA_WITH_ARIA_256_GCM_SHA384 "ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_ARIA_128_GCM_SHA256 "DHE-RSA-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_DHE_RSA_WITH_ARIA_256_GCM_SHA384 "DHE-RSA-ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_DH_RSA_WITH_ARIA_128_GCM_SHA256 "DH-RSA-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_DH_RSA_WITH_ARIA_256_GCM_SHA384 "DH-RSA-ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_ARIA_128_GCM_SHA256 "DHE-DSS-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_DHE_DSS_WITH_ARIA_256_GCM_SHA384 "DHE-DSS-ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_DH_DSS_WITH_ARIA_128_GCM_SHA256 "DH-DSS-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_DH_DSS_WITH_ARIA_256_GCM_SHA384 "DH-DSS-ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_DH_anon_WITH_ARIA_128_GCM_SHA256 "ADH-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_DH_anon_WITH_ARIA_256_GCM_SHA384 "ADH-ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 "ECDHE-ECDSA-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 "ECDHE-ECDSA-ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 "ECDH-ECDSA-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 "ECDH-ECDSA-ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 "ECDHE-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 "ECDHE-ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 "ECDH-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 "ECDH-ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_PSK_WITH_ARIA_128_GCM_SHA256 "PSK-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_PSK_WITH_ARIA_256_GCM_SHA384 "PSK-ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_ARIA_128_GCM_SHA256 "DHE-PSK-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_DHE_PSK_WITH_ARIA_256_GCM_SHA384 "DHE-PSK-ARIA256-GCM-SHA384"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_ARIA_128_GCM_SHA256 "RSA-PSK-ARIA128-GCM-SHA256"
|
||||
# define TLS1_TXT_RSA_PSK_WITH_ARIA_256_GCM_SHA384 "RSA-PSK-ARIA256-GCM-SHA384"
|
||||
|
||||
# define TLS_CT_RSA_SIGN 1
|
||||
# define TLS_CT_DSS_SIGN 2
|
||||
# define TLS_CT_RSA_FIXED_DH 3
|
||||
# define TLS_CT_DSS_FIXED_DH 4
|
||||
# define TLS_CT_ECDSA_SIGN 64
|
||||
# define TLS_CT_RSA_FIXED_ECDH 65
|
||||
# define TLS_CT_ECDSA_FIXED_ECDH 66
|
||||
# define TLS_CT_GOST01_SIGN 22
|
||||
# define TLS_CT_GOST12_SIGN 238
|
||||
# define TLS_CT_GOST12_512_SIGN 239
|
||||
|
||||
/*
|
||||
* when correcting this number, correct also SSL3_CT_NUMBER in ssl3.h (see
|
||||
* comment there)
|
||||
*/
|
||||
# define TLS_CT_NUMBER 10
|
||||
|
||||
# if defined(SSL3_CT_NUMBER)
|
||||
# if TLS_CT_NUMBER != SSL3_CT_NUMBER
|
||||
# error "SSL/TLS CT_NUMBER values do not match"
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# define TLS1_FINISH_MAC_LENGTH 12
|
||||
|
||||
# define TLS_MD_MAX_CONST_SIZE 22
|
||||
# define TLS_MD_CLIENT_FINISH_CONST "client finished"
|
||||
# define TLS_MD_CLIENT_FINISH_CONST_SIZE 15
|
||||
# define TLS_MD_SERVER_FINISH_CONST "server finished"
|
||||
# define TLS_MD_SERVER_FINISH_CONST_SIZE 15
|
||||
# define TLS_MD_KEY_EXPANSION_CONST "key expansion"
|
||||
# define TLS_MD_KEY_EXPANSION_CONST_SIZE 13
|
||||
# define TLS_MD_CLIENT_WRITE_KEY_CONST "client write key"
|
||||
# define TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE 16
|
||||
# define TLS_MD_SERVER_WRITE_KEY_CONST "server write key"
|
||||
# define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE 16
|
||||
# define TLS_MD_IV_BLOCK_CONST "IV block"
|
||||
# define TLS_MD_IV_BLOCK_CONST_SIZE 8
|
||||
# define TLS_MD_MASTER_SECRET_CONST "master secret"
|
||||
# define TLS_MD_MASTER_SECRET_CONST_SIZE 13
|
||||
# define TLS_MD_EXTENDED_MASTER_SECRET_CONST "extended master secret"
|
||||
# define TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE 22
|
||||
|
||||
# ifdef CHARSET_EBCDIC
|
||||
# undef TLS_MD_CLIENT_FINISH_CONST
|
||||
/*
|
||||
* client finished
|
||||
*/
|
||||
# define TLS_MD_CLIENT_FINISH_CONST "\x63\x6c\x69\x65\x6e\x74\x20\x66\x69\x6e\x69\x73\x68\x65\x64"
|
||||
|
||||
# undef TLS_MD_SERVER_FINISH_CONST
|
||||
/*
|
||||
* server finished
|
||||
*/
|
||||
# define TLS_MD_SERVER_FINISH_CONST "\x73\x65\x72\x76\x65\x72\x20\x66\x69\x6e\x69\x73\x68\x65\x64"
|
||||
|
||||
# undef TLS_MD_SERVER_WRITE_KEY_CONST
|
||||
/*
|
||||
* server write key
|
||||
*/
|
||||
# define TLS_MD_SERVER_WRITE_KEY_CONST "\x73\x65\x72\x76\x65\x72\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79"
|
||||
|
||||
# undef TLS_MD_KEY_EXPANSION_CONST
|
||||
/*
|
||||
* key expansion
|
||||
*/
|
||||
# define TLS_MD_KEY_EXPANSION_CONST "\x6b\x65\x79\x20\x65\x78\x70\x61\x6e\x73\x69\x6f\x6e"
|
||||
|
||||
# undef TLS_MD_CLIENT_WRITE_KEY_CONST
|
||||
/*
|
||||
* client write key
|
||||
*/
|
||||
# define TLS_MD_CLIENT_WRITE_KEY_CONST "\x63\x6c\x69\x65\x6e\x74\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79"
|
||||
|
||||
# undef TLS_MD_SERVER_WRITE_KEY_CONST
|
||||
/*
|
||||
* server write key
|
||||
*/
|
||||
# define TLS_MD_SERVER_WRITE_KEY_CONST "\x73\x65\x72\x76\x65\x72\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79"
|
||||
|
||||
# undef TLS_MD_IV_BLOCK_CONST
|
||||
/*
|
||||
* IV block
|
||||
*/
|
||||
# define TLS_MD_IV_BLOCK_CONST "\x49\x56\x20\x62\x6c\x6f\x63\x6b"
|
||||
|
||||
# undef TLS_MD_MASTER_SECRET_CONST
|
||||
/*
|
||||
* master secret
|
||||
*/
|
||||
# define TLS_MD_MASTER_SECRET_CONST "\x6d\x61\x73\x74\x65\x72\x20\x73\x65\x63\x72\x65\x74"
|
||||
# undef TLS_MD_EXTENDED_MASTER_SECRET_CONST
|
||||
/*
|
||||
* extended master secret
|
||||
*/
|
||||
# define TLS_MD_EXTENDED_MASTER_SECRET_CONST "\x65\x78\x74\x65\x6e\x64\x65\x64\x20\x6d\x61\x73\x74\x65\x72\x20\x73\x65\x63\x72\x65\x74"
|
||||
# endif
|
||||
|
||||
/* TLS Session Ticket extension struct */
|
||||
struct tls_session_ticket_ext_st {
|
||||
unsigned short length;
|
||||
void *data;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
@@ -78,7 +78,7 @@ typedef struct asn1_sctx_st ASN1_SCTX;
|
||||
# ifdef BIGNUM
|
||||
# undef BIGNUM
|
||||
# endif
|
||||
struct dane_st;
|
||||
|
||||
typedef struct bio_st BIO;
|
||||
typedef struct bignum_st BIGNUM;
|
||||
typedef struct bignum_ctx BN_CTX;
|
||||
@@ -184,7 +184,7 @@ typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS;
|
||||
|
||||
typedef struct crypto_ex_data_st CRYPTO_EX_DATA;
|
||||
|
||||
typedef struct ocsp_req_ctx_st OCSP_REQ_CTX;
|
||||
typedef struct ossl_http_req_ctx_st OCSP_REQ_CTX; /* backward compatibility */
|
||||
typedef struct ocsp_response_st OCSP_RESPONSE;
|
||||
typedef struct ocsp_responder_id_st OCSP_RESPID;
|
||||
|
||||
@@ -227,4 +227,5 @@ typedef unsigned long ossl_uintmax_t;
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* def OPENSSL_TYPES_H */
|
||||
|
||||
#endif /* OPENSSL_TYPES_H */
|
||||
+14
-6
@@ -372,16 +372,10 @@ int X509_signature_print(BIO *bp, const X509_ALGOR *alg,
|
||||
|
||||
int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);
|
||||
int X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx);
|
||||
# ifndef OPENSSL_NO_OCSP
|
||||
int X509_http_nbio(OCSP_REQ_CTX *rctx, X509 **pcert);
|
||||
# endif
|
||||
int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md);
|
||||
int X509_REQ_sign_ctx(X509_REQ *x, EVP_MD_CTX *ctx);
|
||||
int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md);
|
||||
int X509_CRL_sign_ctx(X509_CRL *x, EVP_MD_CTX *ctx);
|
||||
# ifndef OPENSSL_NO_OCSP
|
||||
int X509_CRL_http_nbio(OCSP_REQ_CTX *rctx, X509_CRL **pcrl);
|
||||
# endif
|
||||
int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md);
|
||||
|
||||
int X509_pubkey_digest(const X509 *data, const EVP_MD *type,
|
||||
@@ -395,6 +389,13 @@ int X509_REQ_digest(const X509_REQ *data, const EVP_MD *type,
|
||||
int X509_NAME_digest(const X509_NAME *data, const EVP_MD *type,
|
||||
unsigned char *md, unsigned int *len);
|
||||
|
||||
# if !defined(OPENSSL_NO_SOCK)
|
||||
X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
|
||||
# define X509_http_nbio(url) X509_load_http(url, NULL, NULL, 0)
|
||||
X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
|
||||
# define X509_CRL_http_nbio(url) X509_CRL_load_http(url, NULL, NULL, 0)
|
||||
# endif
|
||||
|
||||
# ifndef OPENSSL_NO_STDIO
|
||||
X509 *d2i_X509_fp(FILE *fp, X509 **x509);
|
||||
int i2d_X509_fp(FILE *fp, const X509 *x509);
|
||||
@@ -637,6 +638,9 @@ int ASN1_item_digest(const ASN1_ITEM *it, const EVP_MD *type, void *data,
|
||||
|
||||
int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *algor1,
|
||||
ASN1_BIT_STRING *signature, void *data, EVP_PKEY *pkey);
|
||||
int ASN1_item_verify_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1,
|
||||
ASN1_BIT_STRING *signature, void *data,
|
||||
EVP_MD_CTX *ctx);
|
||||
|
||||
int ASN1_item_sign(const ASN1_ITEM *it, X509_ALGOR *algor1,
|
||||
X509_ALGOR *algor2, ASN1_BIT_STRING *signature, void *data,
|
||||
@@ -1034,8 +1038,12 @@ int PKCS8_pkey_get0(const ASN1_OBJECT **ppkalg,
|
||||
|
||||
const STACK_OF(X509_ATTRIBUTE) *
|
||||
PKCS8_pkey_get0_attrs(const PKCS8_PRIV_KEY_INFO *p8);
|
||||
int PKCS8_pkey_add1_attr(PKCS8_PRIV_KEY_INFO *p8, X509_ATTRIBUTE *attr);
|
||||
int PKCS8_pkey_add1_attr_by_NID(PKCS8_PRIV_KEY_INFO *p8, int nid, int type,
|
||||
const unsigned char *bytes, int len);
|
||||
int PKCS8_pkey_add1_attr_by_OBJ(PKCS8_PRIV_KEY_INFO *p8, const ASN1_OBJECT *obj,
|
||||
int type, const unsigned char *bytes, int len);
|
||||
|
||||
|
||||
int X509_PUBKEY_set0_param(X509_PUBKEY *pub, ASN1_OBJECT *aobj,
|
||||
int ptype, void *pval,
|
||||
|
||||
Reference in New Issue
Block a user