X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=include%2Fopenssl%2Fcmp.h;h=d778842b3bc63ff7d6f8a58d32342c9f99158f08;hp=409d48515f25ed77c2a3fb5c2924fcc876e2dc99;hb=3dbc5156b0b2c7a57be160706e6ad38a14edae37;hpb=0402c90ff9caac4c680e3cb6db7729e00d3fc20b diff --git a/include/openssl/cmp.h b/include/openssl/cmp.h index 409d48515f..d778842b3b 100644 --- a/include/openssl/cmp.h +++ b/include/openssl/cmp.h @@ -264,7 +264,7 @@ int OSSL_CMP_CTX_set_option(OSSL_CMP_CTX *ctx, int opt, int val); int OSSL_CMP_CTX_get_option(const OSSL_CMP_CTX *ctx, int opt); /* CMP-specific callback for logging and outputting the error queue: */ int OSSL_CMP_CTX_set_log_cb(OSSL_CMP_CTX *ctx, OSSL_cmp_log_cb_t cb); -#define OSSL_CMP_CTX_set_log_verbosity(ctx, level) \ +# define OSSL_CMP_CTX_set_log_verbosity(ctx, level) \ OSSL_CMP_CTX_set_option(ctx, OSSL_CMP_OPT_LOG_VERBOSITY, level) void OSSL_CMP_CTX_print_errors(OSSL_CMP_CTX *ctx); /* message transfer: */ @@ -346,8 +346,12 @@ char *OSSL_CMP_CTX_snprint_PKIStatus(OSSL_CMP_CTX *ctx, char *buf, ASN1_OCTET_STRING *OSSL_CMP_HDR_get0_transactionID(const OSSL_CMP_PKIHEADER *hdr); ASN1_OCTET_STRING *OSSL_CMP_HDR_get0_recipNonce(const OSSL_CMP_PKIHEADER *hdr); -# ifdef __cplusplus +/* from cmp_msg.c */ +/* support application-level CMP debugging in cmp.c: */ +OSSL_CMP_PKIHEADER *OSSL_CMP_MSG_get0_header(const OSSL_CMP_MSG *msg); + +# ifdef __cplusplus } -# endif +# endif # endif /* !defined OPENSSL_NO_CMP */ #endif /* !defined OPENSSL_CMP_H */