openssl_user_macros.7ossl - Man Page

User defined macros

Description

User defined macros allow the programmer to control certain aspects of what is exposed by the OpenSSL headers.

NOTE: to be effective, a user defined macro must be defined before including any header file that depends on it, either in the compilation command (cc -DMACRO=value) or by defining the macro in source before including any headers.

Other manual pages may refer to this page when declarations depend on user defined macros.

The macros

OPENSSL_API_COMPAT

The value is a version number, given in one of the following two forms:

0xMNNFF000L

This is the form supported for all versions up to 1.1.x, where M represents the major number, NN represents the minor number, and FF represents the fix number, as a hexadecimal number.  For version 1.1.0, that's 0x10100000L.

Any version number may be given, but these numbers are the current known major deprecation points, making them the most meaningful:

0x00908000L (version 0.9.8)

0x10000000L (version 1.0.0)

0x10100000L (version 1.1.0)
For convenience, higher numbers are accepted as well, as long as feasible.  For example, 0x60000000L will work as expected. However, it is recommended to start using the second form instead:

mmnnpp

This form is a simple decimal number calculated with this formula:

major * 10000 + minor * 100 + patch

where major, minor and patch are the desired major, minor and patch components of the version number.  For example:

30000 corresponds to version 3.0.0

10002 corresponds to version 1.0.2

420101 corresponds to version 42.1.1

If OPENSSL_API_COMPAT is undefined, this default value is used in its place: 30000

OPENSSL_NO_DEPRECATED

If this macro is defined, all deprecated public symbols in all OpenSSL versions up to and including the version given by OPENSSL_API_COMPAT (or the default value given above, when OPENSSL_API_COMPAT isn't defined) will be hidden.

Referenced By

BF_encrypt.3ossl(3), BIO_get_ex_new_index.3ossl(3), BIO_set_callback.3ossl(3), BN_generate_prime.3ossl(3), BN_rand.3ossl(3), CONF_modules_free.3ossl(3), d2i_RSAPrivateKey.3ossl(3), DES_random_key.3ossl(3), DH_generate_key.3ossl(3), DH_generate_parameters.3ossl(3), DH_get0_pqg.3ossl(3), DH_get_1024_160.3ossl(3), DH_meth_new.3ossl(3), DH_new_by_nid.3ossl(3), DH_set_method.3ossl(3), DH_size.3ossl(3), DSA_do_sign.3ossl(3), DSA_dup_DH.3ossl(3), DSA_generate_key.3ossl(3), DSA_generate_parameters.3ossl(3), DSA_get0_pqg.3ossl(3), DSA_meth_new.3ossl(3), DSA_new.3ossl(3), DSA_set_method.3ossl(3), DSA_sign.3ossl(3), DSA_size.3ossl(3), ECDSA_SIG_new.3ossl(3), EC_GFp_simple_method.3ossl(3), EC_GROUP_copy.3ossl(3), EC_GROUP_new.3ossl(3), EC_KEY_new.3ossl(3), ECPKParameters_print.3ossl(3), EC_POINT_add.3ossl(3), EC_POINT_new.3ossl(3), ENGINE_add.3ossl(3), ERR_get_error.3ossl(3), ERR_load_crypto_strings.3ossl(3), ERR_put_error.3ossl(3), ERR_remove_state.3ossl(3), EVP_CIPHER_CTX_get_original_iv.3ossl(3), EVP_CIPHER_meth_new.3ossl(3), EVP_DigestInit.3ossl(3), EVP_EncryptInit.3ossl(3), EVP_MD_meth_new.3ossl(3), EVP_PKEY_copy_parameters.3ossl(3), EVP_PKEY_CTX_ctrl.3ossl(3), EVP_PKEY_meth_get_count.3ossl(3), EVP_PKEY_meth_new.3ossl(3), EVP_PKEY_new.3ossl(3), EVP_PKEY_set1_encoded_public_key.3ossl(3), EVP_PKEY_set1_RSA.3ossl(3), HMAC.3ossl(3), MD5.3ossl(3), MDC2_Init.3ossl(3), OBJ_nid2obj.3ossl(3), OCSP_sendreq_new.3ossl(3), OpenSSL_add_all_algorithms.3ossl(3), OPENSSL_config.3ossl(3), OPENSSL_fork_prepare.3ossl(3), OPENSSL_malloc.3ossl(3), OSSL_HTTP_parse_url.3ossl(3), OSSL_STORE_LOADER.3ossl(3), OSSL_STORE_open.3ossl(3), PEM_read_bio_PrivateKey.3ossl(3), PEM_read_CMS.3ossl(3), RAND_add.3ossl(3), RAND_bytes.3ossl(3), RAND_cleanup.3ossl(3), RAND_set_rand_method.3ossl(3), RC4_set_key.3ossl(3), RIPEMD160_Init.3ossl(3), RSA_blinding_on.3ossl(3), RSA_check_key.3ossl(3), RSA_generate_key.3ossl(3), RSA_get0_key.3ossl(3), RSA_meth_new.3ossl(3), RSA_new.3ossl(3), RSA_padding_add_PKCS1_type_1.3ossl(3), RSA_print.3ossl(3), RSA_private_encrypt.3ossl(3), RSA_public_encrypt.3ossl(3), RSA_set_method.3ossl(3), RSA_sign.3ossl(3), RSA_sign_ASN1_OCTET_STRING.3ossl(3), RSA_size.3ossl(3), SHA256_Init.3ossl(3), SRP_Calc_B.3ossl(3), SRP_create_verifier.3ossl(3), SRP_user_pwd_new.3ossl(3), SRP_VBASE_new.3ossl(3), SSL_COMP_add_compression_method.3ossl(3), SSL_CTX_set_srp_password.3ossl(3), SSL_CTX_set_tlsext_ticket_key_cb.3ossl(3), SSL_CTX_set_tmp_dh_callback.3ossl(3), X509_dup.3ossl(3), X509_get_subject_name.3ossl(3), X509_load_http.3ossl(3).

The man pages OPENSSL_API_COMPAT.7ossl(7) and OPENSSL_NO_DEPRECATED.7ossl(7) are aliases of openssl_user_macros.7ossl(7).

2022-11-01 3.0.5 OpenSSL