Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
cmp_util.h57 linesDownload Raw Back to openssl
1/*2 * Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.3 * Copyright Nokia 2007-20194 * Copyright Siemens AG 2015-20195 *6 * Licensed under the Apache License 2.0 (the "License").  You may not use7 * this file except in compliance with the License.  You can obtain a copy8 * in the file LICENSE in the source distribution or at9 * https://www.openssl.org/source/license.html10 */11 12#ifndef OPENSSL_CMP_UTIL_H13# define OPENSSL_CMP_UTIL_H14# pragma once15 16# include <openssl/opensslconf.h>17# ifndef OPENSSL_NO_CMP18 19#  include <openssl/macros.h>20#  include <openssl/trace.h>21 22#  ifdef __cplusplus23extern "C" {24#  endif25 26int  OSSL_CMP_log_open(void);27void OSSL_CMP_log_close(void);28#  define OSSL_CMP_LOG_PREFIX "CMP "29 30/*31 * generalized logging/error callback mirroring the severity levels of syslog.h32 */33typedef int OSSL_CMP_severity;34#  define OSSL_CMP_LOG_EMERG   035#  define OSSL_CMP_LOG_ALERT   136#  define OSSL_CMP_LOG_CRIT    237#  define OSSL_CMP_LOG_ERR     338#  define OSSL_CMP_LOG_WARNING 439#  define OSSL_CMP_LOG_NOTICE  540#  define OSSL_CMP_LOG_INFO    641#  define OSSL_CMP_LOG_DEBUG   742#  define OSSL_CMP_LOG_TRACE   843#  define OSSL_CMP_LOG_MAX     OSSL_CMP_LOG_TRACE44typedef int (*OSSL_CMP_log_cb_t)(const char *func, const char *file, int line,45                                 OSSL_CMP_severity level, const char *msg);46 47int OSSL_CMP_print_to_bio(BIO *bio, const char *component, const char *file,48                          int line, OSSL_CMP_severity level, const char *msg);49/* use of the logging callback for outputting error queue */50void OSSL_CMP_print_errors_cb(OSSL_CMP_log_cb_t log_fn);51 52#  ifdef  __cplusplus53}54#  endif55# endif /* !defined(OPENSSL_NO_CMP) */56#endif /* !defined(OPENSSL_CMP_UTIL_H) */57 
codekingpro/portable-devtools · Team Ai