/include/openssl/configuration.h
/include/openssl/opensslv.h
/include/openssl/fipskey.h
+/include/openssl/safestack.h
/include/openssl/ssl.h
/include/openssl/x509.h
/include/openssl/x509v3.h
#include <openssl/asn1t.h>
DEFINE_STACK_OF(ASN1_OBJECT)
-DEFINE_STACK_OF_STRING()
typedef enum OPTION_choice {
OPT_ERR = -1, OPT_EOF = 0, OPT_HELP,
#include "progs.h"
DEFINE_STACK_OF(CONF_VALUE)
-DEFINE_STACK_OF_STRING()
#ifndef W_OK
# define F_OK 0
# include <openssl/cms.h>
DEFINE_STACK_OF(CMS_SignerInfo)
-DEFINE_STACK_OF_STRING()
static int save_certs(char *signerfile, STACK_OF(X509) *signers);
static int cms_cb(int ok, X509_STORE_CTX *ctx);
#include <openssl/pem.h>
#include <openssl/objects.h>
-DEFINE_STACK_OF_STRING()
-
static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile);
typedef enum OPTION_choice {
#include <openssl/hmac.h>
#include <ctype.h>
-DEFINE_STACK_OF_STRING()
-
#undef BUFSIZE
#define BUFSIZE 1024*8
#include <openssl/ssl.h>
#include <openssl/store.h>
-DEFINE_STACK_OF_STRING()
-DEFINE_STACK_OF_CSTRING()
-
typedef enum OPTION_choice {
OPT_ERR = -1, OPT_EOF = 0, OPT_HELP,
OPT_C, OPT_T, OPT_TT, OPT_PRE, OPT_POST,
#include "apps.h"
#include "progs.h"
-DEFINE_STACK_OF_STRING()
-
#define BUFSIZE 4096
/* Configuration file values */
#include <openssl/kdf.h>
#include <openssl/params.h>
-DEFINE_STACK_OF_STRING()
-
typedef enum OPTION_choice {
OPT_ERR = -1, OPT_EOF = 0, OPT_HELP,
OPT_KDFOPT, OPT_BIN, OPT_KEYLEN, OPT_OUT,
DEFINE_STACK_OF(CONF)
DEFINE_STACK_OF(CONF_VALUE)
-DEFINE_STACK_OF_STRING()
typedef struct {
const char *name;
#include <openssl/safestack.h>
#include "names.h"
-DEFINE_STACK_OF_CSTRING()
-
#ifdef _WIN32
# define strcasecmp _stricmp
#endif
#define COOKIE_SECRET_LENGTH 16
-DEFINE_STACK_OF_STRING()
-
VERIFY_CB_ARGS verify_args = { -1, 0, X509_V_OK, 0 };
#ifndef OPENSSL_NO_SOCK
#include "opt.h"
#include "names.h"
-DEFINE_STACK_OF_CSTRING()
-
static int verbose = 0;
static void legacy_cipher_fn(const EVP_CIPHER *c,
#include <openssl/evp.h>
#include <openssl/params.h>
-DEFINE_STACK_OF_STRING()
-
#undef BUFSIZE
#define BUFSIZE 1024*8
DEFINE_STACK_OF(OCSP_CERTID)
DEFINE_STACK_OF(CONF_VALUE)
-DEFINE_STACK_OF_STRING()
#if defined(__TANDEM)
# if defined(OPENSSL_TANDEM_FLOSS)
DEFINE_STACK_OF(PKCS7)
DEFINE_STACK_OF(PKCS12_SAFEBAG)
-DEFINE_STACK_OF_STRING()
#define NOKEYS 0x1
#define NOCERTS 0x2
#include <openssl/evp.h>
#include <sys/stat.h>
-DEFINE_STACK_OF_STRING()
-
#define KEY_NONE 0
#define KEY_PRIVKEY 1
#define KEY_PUBKEY 2
# include <string.h> /* memset */
#endif
-DEFINE_STACK_OF_CSTRING()
-
typedef enum OPTION_choice {
OPT_ERR = -1, OPT_EOF = 0, OPT_HELP,
OPT_V = 100, OPT_VV, OPT_VVV
# include <openssl/pem.h>
# include <openssl/x509.h>
-DEFINE_STACK_OF_STRING()
-
# ifndef PATH_MAX
# define PATH_MAX 4096
# endif
#endif
DEFINE_STACK_OF(CONF_VALUE)
-DEFINE_STACK_OF_STRING()
#define BITS "default_bits"
#define KEYFILE "default_keyfile"
#endif
DEFINE_STACK_OF(SCT)
-DEFINE_STACK_OF_STRING()
#undef BUFSIZZ
#define BUFSIZZ 1024*8
#endif
#include "internal/sockets.h"
-DEFINE_STACK_OF_STRING()
-
static int not_resumable_sess_cb(SSL *s, int is_forward_secure);
static int sv_body(int s, int stype, int prot, unsigned char *context);
static int www_body(int s, int stype, int prot, unsigned char *context);
#include <openssl/x509_vfy.h>
#include <openssl/x509v3.h>
-DEFINE_STACK_OF_STRING()
-
static int save_certs(char *signerfile, STACK_OF(X509) *signers);
static int smime_cb(int ok, X509_STORE_CTX *ctx);
#include <openssl/x509v3.h>
#include <openssl/pem.h>
-DEFINE_STACK_OF_STRING()
-
static int cb(int ok, X509_STORE_CTX *ctx);
static int check(X509_STORE *ctx, const char *file,
STACK_OF(X509) *uchain, STACK_OF(X509) *tchain,
#endif
DEFINE_STACK_OF(ASN1_OBJECT)
-DEFINE_STACK_OF_STRING()
#undef POSTFIX
#define POSTFIX ".srl"
# unconditionally before anything else.
DEPEND[]=include/openssl/configuration.h include/openssl/opensslv.h \
include/openssl/fipskey.h \
+ include/openssl/safestack.h \
include/openssl/ssl.h \
include/openssl/x509.h \
include/openssl/x509v3.h \
GENERATE[include/openssl/configuration.h]=include/openssl/configuration.h.in
GENERATE[include/openssl/opensslv.h]=include/openssl/opensslv.h.in
GENERATE[include/openssl/fipskey.h]=include/openssl/fipskey.h.in
+GENERATE[include/openssl/safestack.h]=include/openssl/safestack.h.in
GENERATE[include/openssl/ssl.h]=include/openssl/ssl.h.in
GENERATE[include/openssl/x509.h]=include/openssl/x509.h.in
GENERATE[include/openssl/x509v3.h]=include/openssl/x509v3.h.in
}
}
-DEFINE_STACK_OF_CSTRING()
-
struct collected_data_st {
struct decoder_EVP_PKEY_data_st *process_data;
STACK_OF(OPENSSL_CSTRING) *names;
#include "crypto/evp.h"
#include "encoder_local.h"
-DEFINE_STACK_OF_CSTRING()
-
int OSSL_ENCODER_CTX_set_cipher(OSSL_ENCODER_CTX *ctx,
const char *cipher_name,
const char *propquery)
* prototypes.
*/
-DEFINE_STACK_OF_STRING()
-
/* Our ENGINE handlers */
static int dynamic_init(ENGINE *e);
static int dynamic_finish(ENGINE *e);
#include "crypto/x509.h"
#include "x509_local.h"
-DEFINE_STACK_OF_STRING()
-
/* Generic object loader, given expected type and criterion */
static int cache_objects(X509_LOOKUP *lctx, const char *uri,
const OSSL_STORE_SEARCH *criterion,
#include "x509_local.h"
DEFINE_STACK_OF(CONF_VALUE)
-DEFINE_STACK_OF_STRING()
static char *strip_spaces(char *name);
static int sk_strcmp(const char *const *a, const char *const *b);
#include "crypto/x509.h"
#include "x509_local.h"
-DEFINE_STACK_OF_STRING()
-
/* CRL score values */
/* No unhandled critical extensions */
DEFINE_STACK_OF(ASN1_OBJECT)
DEFINE_STACK_OF(X509_VERIFY_PARAM)
-DEFINE_STACK_OF_STRING()
/* X509_VERIFY_PARAM functions */
/*
+ * {- 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
* https://www.openssl.org/source/license.html
*/
+{-
+use OpenSSL::stackhash qw(generate_stack_string_macros
+ generate_stack_const_string_macros
+ generate_stack_block_macros);
+-}
+
#ifndef OPENSSL_SAFESTACK_H
# define OPENSSL_SAFESTACK_H
# pragma once
* chars. So, we have to implement STRING specially for STACK_OF. This is
* dealt with in the autogenerated macros below.
*/
-DEFINE_OR_DECLARE_STACK_OF_STRING()
-DEFINE_OR_DECLARE_STACK_OF_CSTRING()
+{-
+ generate_stack_string_macros()
+ .generate_stack_const_string_macros();
+-}
#if !defined(OPENSSL_NO_DEPRECATED_3_0)
/*
* These should also be distinguished from "normal" stacks.
*/
typedef void *OPENSSL_BLOCK;
-DEFINE_SPECIAL_STACK_OF(OPENSSL_BLOCK, void)
+{-
+ generate_stack_block_macros();
+-}
#endif
/*
#include <openssl/err.h>
DEFINE_STACK_OF(CONF_VALUE)
-DEFINE_STACK_OF_CSTRING()
static STACK_OF(OPENSSL_CSTRING) *section_names = NULL;
#include "crypto/bn_dh.h" /* _bignum_ffdhe2048_p */
#include "../e_os.h" /* strcasecmp */
-DEFINE_STACK_OF_CSTRING()
-
static OPENSSL_CTX *libctx = NULL;
static OSSL_PROVIDER *nullprov = NULL;
static OSSL_PROVIDER *libprov = NULL;
#include "testutil.h"
#include "evp_test.h"
-DEFINE_STACK_OF_STRING()
-
#define AAD_NUM 4
typedef struct evp_test_method_st EVP_TEST_METHOD;
# include <unistd.h>
#endif
-DEFINE_STACK_OF_STRING()
-
static SSL_CTX *s_ctx = NULL;
static SSL_CTX *s_ctx2 = NULL;
require Exporter;
our @ISA = qw(Exporter);
-our @EXPORT_OK = qw(generate_stack_macros generate_const_stack_macros);
+our @EXPORT_OK = qw(generate_stack_macros generate_const_stack_macros
+ generate_stack_string_macros
+ generate_stack_const_string_macros
+ generate_stack_block_macros);
sub generate_stack_macros_int {
my $nametype = shift;
return generate_stack_macros_int($type, "const $type", $type);
}
+
+sub generate_stack_string_macros {
+ return generate_stack_macros_int("OPENSSL_STRING", "char", "char");
+}
+
+sub generate_stack_const_string_macros {
+ return generate_stack_macros_int("OPENSSL_CSTRING", "const char", "char");
+}
+
+sub generate_stack_block_macros {
+ return generate_stack_macros_int("OPENSSL_BLOCK", "void", "void");
+}
1;