mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Fix safestack issues in pkcs12.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
15c3dcfc78
commit
add3392727
1
.gitignore
vendored
1
.gitignore
vendored
@ -36,6 +36,7 @@
|
||||
/include/openssl/fipskey.h
|
||||
/include/openssl/ocsp.h
|
||||
/include/openssl/opensslv.h
|
||||
/include/openssl/pkcs12.h
|
||||
/include/openssl/pkcs7.h
|
||||
/include/openssl/safestack.h
|
||||
/include/openssl/srp.h
|
||||
|
@ -20,8 +20,6 @@
|
||||
#include <openssl/pkcs12.h>
|
||||
#include <openssl/provider.h>
|
||||
|
||||
DEFINE_STACK_OF(PKCS12_SAFEBAG)
|
||||
|
||||
#define NOKEYS 0x1
|
||||
#define NOCERTS 0x2
|
||||
#define INFO 0x4
|
||||
|
@ -27,6 +27,7 @@ DEPEND[]=include/openssl/asn1.h \
|
||||
include/openssl/fipskey.h \
|
||||
include/openssl/opensslv.h \
|
||||
include/openssl/ocsp.h \
|
||||
include/openssl/pkcs12.h \
|
||||
include/openssl/pkcs7.h \
|
||||
include/openssl/safestack.h \
|
||||
include/openssl/srp.h \
|
||||
@ -51,6 +52,7 @@ GENERATE[include/openssl/ess.h]=include/openssl/ess.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
|
||||
GENERATE[include/openssl/pkcs12.h]=include/openssl/pkcs12.h.in
|
||||
GENERATE[include/openssl/pkcs7.h]=include/openssl/pkcs7.h.in
|
||||
GENERATE[include/openssl/safestack.h]=include/openssl/safestack.h.in
|
||||
GENERATE[include/openssl/srp.h]=include/openssl/srp.h.in
|
||||
|
@ -12,8 +12,6 @@
|
||||
#include <openssl/pkcs12.h>
|
||||
#include "p12_local.h"
|
||||
|
||||
DEFINE_STACK_OF(PKCS12_SAFEBAG)
|
||||
|
||||
static int pkcs12_add_bag(STACK_OF(PKCS12_SAFEBAG) **pbags,
|
||||
PKCS12_SAFEBAG *bag);
|
||||
|
||||
|
@ -12,8 +12,6 @@
|
||||
#include <openssl/pkcs12.h>
|
||||
#include "crypto/x509.h" /* for X509_add_cert_new() */
|
||||
|
||||
DEFINE_STACK_OF(PKCS12_SAFEBAG)
|
||||
|
||||
/* Simplified PKCS#12 routines */
|
||||
|
||||
static int parse_pk12(PKCS12 *p12, const char *pass, int passlen,
|
||||
|
@ -15,8 +15,6 @@
|
||||
#include <openssl/pkcs12.h>
|
||||
#include "p12_local.h"
|
||||
|
||||
DEFINE_STACK_OF(PKCS12_SAFEBAG)
|
||||
|
||||
/* PKCS#12 password change routine */
|
||||
|
||||
static int newpass_p12(PKCS12 *p12, const char *oldpass, const char *newpass);
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*
|
||||
* {- join("\n * ", @autowarntext) -}
|
||||
*
|
||||
* Copyright 1999-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
@ -7,6 +9,10 @@
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
{-
|
||||
use OpenSSL::stackhash qw(generate_stack_macros);
|
||||
-}
|
||||
|
||||
#ifndef OPENSSL_PKCS12_H
|
||||
# define OPENSSL_PKCS12_H
|
||||
# pragma once
|
||||
@ -52,7 +58,9 @@ typedef struct PKCS12_st PKCS12;
|
||||
|
||||
typedef struct PKCS12_SAFEBAG_st PKCS12_SAFEBAG;
|
||||
|
||||
DEFINE_OR_DECLARE_STACK_OF(PKCS12_SAFEBAG)
|
||||
{-
|
||||
generate_stack_macros("PKCS12_SAFEBAG");
|
||||
-}
|
||||
|
||||
typedef struct pkcs12_bag_st PKCS12_BAGS;
|
||||
|
@ -21,8 +21,6 @@
|
||||
#include "testutil.h"
|
||||
#include "pkcs12_helper.h"
|
||||
|
||||
DEFINE_STACK_OF(PKCS12_SAFEBAG)
|
||||
|
||||
/* Set this to > 0 write test data to file */
|
||||
int write_files = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user