Path: blob/main/crypto/openssl/apps/include/cmp_mock_srv.h
34870 views
/*1* Copyright 2018-2025 The OpenSSL Project Authors. All Rights Reserved.2* Copyright Siemens AG 2018-20203*4* Licensed under the Apache License 2.0 (the "License"). You may not use5* this file except in compliance with the License. You can obtain a copy6* in the file LICENSE in the source distribution or at7* https://www.openssl.org/source/license.html8*/910#ifndef OSSL_APPS_CMP_MOCK_SRV_H11# define OSSL_APPS_CMP_MOCK_SRV_H1213# include <openssl/opensslconf.h>14# ifndef OPENSSL_NO_CMP1516# include <openssl/cmp.h>1718OSSL_CMP_SRV_CTX *ossl_cmp_mock_srv_new(OSSL_LIB_CTX *libctx,19const char *propq);20void ossl_cmp_mock_srv_free(OSSL_CMP_SRV_CTX *srv_ctx);2122int ossl_cmp_mock_srv_set1_refCert(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert);23int ossl_cmp_mock_srv_set1_certOut(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert);24int ossl_cmp_mock_srv_set1_keyOut(OSSL_CMP_SRV_CTX *srv_ctx, EVP_PKEY *pkey);25int ossl_cmp_mock_srv_set1_crlOut(OSSL_CMP_SRV_CTX *srv_ctx, X509_CRL *crl);26int ossl_cmp_mock_srv_set1_chainOut(OSSL_CMP_SRV_CTX *srv_ctx,27STACK_OF(X509) *chain);28int ossl_cmp_mock_srv_set1_caPubsOut(OSSL_CMP_SRV_CTX *srv_ctx,29STACK_OF(X509) *caPubs);30int ossl_cmp_mock_srv_set1_newWithNew(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert);31int ossl_cmp_mock_srv_set1_newWithOld(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert);32int ossl_cmp_mock_srv_set1_oldWithNew(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert);33int ossl_cmp_mock_srv_set_statusInfo(OSSL_CMP_SRV_CTX *srv_ctx, int status,34int fail_info, const char *text);35int ossl_cmp_mock_srv_set_sendError(OSSL_CMP_SRV_CTX *srv_ctx, int bodytype);36int ossl_cmp_mock_srv_set_pollCount(OSSL_CMP_SRV_CTX *srv_ctx, int count);37int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec);3839# endif /* !defined(OPENSSL_NO_CMP) */40#endif /* !defined(OSSL_APPS_CMP_MOCK_SRV_H) */414243