components/openssl: change header file relationship of level
This commit is contained in:
parent
034da95abb
commit
ecefb1305a
|
@ -7,6 +7,17 @@
|
||||||
|
|
||||||
#include "ssl_types.h"
|
#include "ssl_types.h"
|
||||||
|
|
||||||
|
#define STACK_OF(type) struct stack_st_##type
|
||||||
|
|
||||||
|
#define SKM_DEFINE_STACK_OF(t1, t2, t3) \
|
||||||
|
STACK_OF(t1); \
|
||||||
|
static ossl_inline STACK_OF(t1) *sk_##t1##_new_null(void) \
|
||||||
|
{ \
|
||||||
|
return (STACK_OF(t1) *)OPENSSL_sk_new_null(); \
|
||||||
|
} \
|
||||||
|
|
||||||
|
#define DEFINE_STACK_OF(t) SKM_DEFINE_STACK_OF(t, t, t)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief create a openssl stack object
|
* @brief create a openssl stack object
|
||||||
*
|
*
|
||||||
|
|
|
@ -37,17 +37,6 @@ typedef void BIO;
|
||||||
#define X509_METHOD_CALL(f, x, ...) x->method->x509_##f(x, ##__VA_ARGS__)
|
#define X509_METHOD_CALL(f, x, ...) x->method->x509_##f(x, ##__VA_ARGS__)
|
||||||
#define EVP_PKEY_METHOD_CALL(f, k, ...) k->method->pkey_##f(k, ##__VA_ARGS__)
|
#define EVP_PKEY_METHOD_CALL(f, k, ...) k->method->pkey_##f(k, ##__VA_ARGS__)
|
||||||
|
|
||||||
#define STACK_OF(type) struct stack_st_##type
|
|
||||||
|
|
||||||
#define SKM_DEFINE_STACK_OF(t1, t2, t3) \
|
|
||||||
STACK_OF(t1); \
|
|
||||||
static ossl_inline STACK_OF(t1) *sk_##t1##_new_null(void) \
|
|
||||||
{ \
|
|
||||||
return (STACK_OF(t1) *)OPENSSL_sk_new_null(); \
|
|
||||||
} \
|
|
||||||
|
|
||||||
#define DEFINE_STACK_OF(t) SKM_DEFINE_STACK_OF(t, t, t)
|
|
||||||
|
|
||||||
typedef int (*OPENSSL_sk_compfunc)(const void *, const void *);
|
typedef int (*OPENSSL_sk_compfunc)(const void *, const void *);
|
||||||
|
|
||||||
struct stack_st;
|
struct stack_st;
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "platform/ssl_port.h"
|
|
||||||
#include "internal/ssl_x509.h"
|
#include "internal/ssl_x509.h"
|
||||||
#include "internal/ssl_pkey.h"
|
#include "internal/ssl_pkey.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue