mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Fix safestack issues in crmf.h
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12781)
This commit is contained in:
parent
c5a5581127
commit
98c35dc48d
1
.gitignore
vendored
1
.gitignore
vendored
@ -26,6 +26,7 @@
|
||||
/include/openssl/cmp.h
|
||||
/include/openssl/cms.h
|
||||
/include/openssl/configuration.h
|
||||
/include/openssl/crmf.h
|
||||
/include/openssl/fipskey.h
|
||||
/include/openssl/ocsp.h
|
||||
/include/openssl/opensslv.h
|
||||
|
@ -17,6 +17,7 @@ DEPEND[]=include/openssl/asn1.h \
|
||||
include/openssl/cmp.h \
|
||||
include/openssl/cms.h \
|
||||
include/openssl/configuration.h \
|
||||
include/openssl/crmf.h \
|
||||
include/openssl/fipskey.h \
|
||||
include/openssl/opensslv.h \
|
||||
include/openssl/ocsp.h \
|
||||
@ -31,9 +32,10 @@ DEPEND[]=include/openssl/asn1.h \
|
||||
doc/man7/openssl_user_macros.pod
|
||||
|
||||
GENERATE[include/openssl/asn1.h]=include/openssl/asn1.h.in
|
||||
GENERATE[include/openssl/configuration.h]=include/openssl/configuration.h.in
|
||||
GENERATE[include/openssl/cmp.h]=include/openssl/cmp.h.in
|
||||
GENERATE[include/openssl/cms.h]=include/openssl/cms.h.in
|
||||
GENERATE[include/openssl/configuration.h]=include/openssl/configuration.h.in
|
||||
GENERATE[include/openssl/crmf.h]=include/openssl/crmf.h.in
|
||||
GENERATE[include/openssl/fipskey.h]=include/openssl/fipskey.h.in
|
||||
GENERATE[include/openssl/ocsp.h]=include/openssl/ocsp.h.in
|
||||
GENERATE[include/openssl/opensslv.h]=include/openssl/opensslv.h.in
|
||||
|
@ -21,8 +21,6 @@
|
||||
|
||||
#include "openssl/cmp_util.h"
|
||||
|
||||
DEFINE_STACK_OF(OSSL_CRMF_CERTID)
|
||||
|
||||
#define IS_CREP(t) ((t) == OSSL_CMP_PKIBODY_IP || (t) == OSSL_CMP_PKIBODY_CP \
|
||||
|| (t) == OSSL_CMP_PKIBODY_KUP)
|
||||
|
||||
|
@ -21,9 +21,6 @@
|
||||
#include <openssl/x509.h>
|
||||
#include "crypto/x509.h" /* for x509_set0_libctx() */
|
||||
|
||||
DEFINE_STACK_OF(OSSL_CRMF_MSG)
|
||||
DEFINE_STACK_OF(OSSL_CRMF_CERTID)
|
||||
|
||||
OSSL_CMP_PKIHEADER *OSSL_CMP_MSG_get0_header(const OSSL_CMP_MSG *msg)
|
||||
{
|
||||
if (msg == NULL) {
|
||||
|
@ -19,8 +19,6 @@
|
||||
#include <openssl/cmp.h>
|
||||
#include <openssl/err.h>
|
||||
|
||||
DEFINE_STACK_OF(OSSL_CRMF_MSG)
|
||||
|
||||
/* the context for the generic CMP server */
|
||||
struct ossl_cmp_srv_ctx_st
|
||||
{
|
||||
|
@ -36,8 +36,6 @@
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/evp.h>
|
||||
|
||||
DEFINE_STACK_OF(OSSL_CRMF_MSG)
|
||||
|
||||
/*-
|
||||
* atyp = Attribute Type
|
||||
* valt = Value Type
|
||||
|
@ -389,5 +389,4 @@ struct ossl_crmf_msg_st {
|
||||
/* 1 */
|
||||
STACK_OF(OSSL_CRMF_ATTRIBUTETYPEANDVALUE) *regInfo;
|
||||
} /* OSSL_CRMF_MSG */;
|
||||
/* DEFINE_STACK_OF(OSSL_CRMF_MSG) */
|
||||
#endif
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* {- join("\n * ", @autowarntext) -}
|
||||
*
|
||||
* Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright Nokia 2007-2019
|
||||
* Copyright Siemens AG 2015-2019
|
||||
@ -11,6 +13,10 @@
|
||||
* CRMF (RFC 4211) implementation by M. Peylo, M. Viljanen, and D. von Oheimb.
|
||||
*/
|
||||
|
||||
{-
|
||||
use OpenSSL::stackhash qw(generate_stack_macros);
|
||||
-}
|
||||
|
||||
#ifndef OPENSSL_CRMF_H
|
||||
# define OPENSSL_CRMF_H
|
||||
|
||||
@ -44,7 +50,9 @@ DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_ENCRYPTEDVALUE)
|
||||
typedef struct ossl_crmf_msg_st OSSL_CRMF_MSG;
|
||||
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_MSG)
|
||||
DECLARE_ASN1_DUP_FUNCTION(OSSL_CRMF_MSG)
|
||||
DEFINE_OR_DECLARE_STACK_OF(OSSL_CRMF_MSG)
|
||||
{-
|
||||
generate_stack_macros("OSSL_CRMF_MSG");
|
||||
-}
|
||||
typedef struct ossl_crmf_attributetypeandvalue_st OSSL_CRMF_ATTRIBUTETYPEANDVALUE;
|
||||
typedef struct ossl_crmf_pbmparameter_st OSSL_CRMF_PBMPARAMETER;
|
||||
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_PBMPARAMETER)
|
||||
@ -53,7 +61,9 @@ typedef struct ossl_crmf_certrequest_st OSSL_CRMF_CERTREQUEST;
|
||||
typedef struct ossl_crmf_certid_st OSSL_CRMF_CERTID;
|
||||
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_CERTID)
|
||||
DECLARE_ASN1_DUP_FUNCTION(OSSL_CRMF_CERTID)
|
||||
DEFINE_OR_DECLARE_STACK_OF(OSSL_CRMF_CERTID)
|
||||
{-
|
||||
generate_stack_macros("OSSL_CRMF_CERTID");
|
||||
-}
|
||||
|
||||
typedef struct ossl_crmf_pkipublicationinfo_st OSSL_CRMF_PKIPUBLICATIONINFO;
|
||||
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_PKIPUBLICATIONINFO)
|
@ -11,7 +11,6 @@
|
||||
|
||||
#include "cmp_testlib.h"
|
||||
#include "../crypto/crmf/crmf_local.h" /* for manipulating POPO signature */
|
||||
DEFINE_STACK_OF(OSSL_CRMF_MSG)
|
||||
|
||||
static const char *server_f;
|
||||
static const char *client_f;
|
||||
|
Loading…
Reference in New Issue
Block a user