+/* clang-format off */
{- join("\n",map { "/* $_ */" } @autowarntext) -}
+/* clang-format on */
/*
* Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
*
# define OSSL_CRYPTO_DSO_CONF_H
# pragma once
+/* clang-format off */
{- # The DSO code currently always implements all functions so that no
# applications will have to worry about that from a compilation point
# of view. However, the "method"s may return zero unless that platform
@macros = ( "DSO_DLFCN" );
}
join("\n", map { "# define $_" } @macros); -}
+/* clang-format on */
+/* clang-format off */
# define DSO_EXTENSION "{- platform->dsoext() -}"
+/* clang-format on */
#endif
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_ASN1_H
# define OPENSSL_ASN1_H
# define SMIME_STREAM 0x1000
/* Stacks for types not otherwise defined in this header */
+/* clang-format off */
{-
generate_stack_macros("X509_ALGOR");
-}
+/* clang-format on */
# define ASN1_STRING_FLAG_BITS_LEFT 0x08 /* Set if 0x07 has bits left value */
unsigned long flags;
};
+/* clang-format off */
{-
generate_stack_macros("ASN1_STRING_TABLE");
-}
+/* clang-format on */
/* size limits: this stuff is taken straight from RFC 5280 */
} value;
};
+/* clang-format off */
{-
generate_stack_macros("ASN1_TYPE");
-}
+/* clang-format on */
typedef STACK_OF(ASN1_TYPE) ASN1_SEQUENCE_ANY;
ASN1_TYPE *ASN1_TYPE_pack_sequence(const ASN1_ITEM *it, void *s, ASN1_TYPE **t);
void *ASN1_TYPE_unpack_sequence(const ASN1_ITEM *it, const ASN1_TYPE *t);
+/* clang-format off */
{-
generate_stack_macros("ASN1_OBJECT");
-}
+/* clang-format on */
DECLARE_ASN1_FUNCTIONS(ASN1_OBJECT)
int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value,
BIT_STRING_BITNAME *tbl);
+/* clang-format off */
{-
generate_stack_macros("ASN1_INTEGER");
-}
+/* clang-format on */
DECLARE_ASN1_FUNCTIONS(ASN1_INTEGER)
int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *str, const unsigned char *data,
int len);
+/* clang-format off */
{-
generate_stack_macros("ASN1_UTF8STRING");
-}
+/* clang-format on */
DECLARE_ASN1_FUNCTIONS(ASN1_VISIBLESTRING)
DECLARE_ASN1_FUNCTIONS(ASN1_UNIVERSALSTRING)
int UTF8_getc(const unsigned char *str, int len, unsigned long *val);
int UTF8_putc(unsigned char *str, int len, unsigned long value);
+/* clang-format off */
{-
generate_stack_macros("ASN1_GENERALSTRING");
-}
+/* clang-format on */
DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE)
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_ASN1T_H
# define OPENSSL_ASN1T_H
DECLARE_ASN1_ITEM(ZLONG)
# endif
+/* clang-format off */
{-
generate_stack_macros("ASN1_VALUE");
-}
+/* clang-format on */
/* Functions used internally by the ASN1 code */
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_BIO_H
# define OPENSSL_BIO_H
typedef int BIO_info_cb(BIO *, int, int);
typedef BIO_info_cb bio_info_cb; /* backward compatibility */
+/* clang-format off */
{-
generate_stack_macros("BIO");
-}
+/* clang-format on */
/* Prefix and suffix callback in ASN1 BIO */
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CMP_H
# define OPENSSL_CMP_H
DECLARE_ASN1_DUP_FUNCTION(OSSL_CMP_MSG)
DECLARE_ASN1_ENCODE_FUNCTIONS(OSSL_CMP_MSG, OSSL_CMP_MSG, OSSL_CMP_MSG)
typedef struct ossl_cmp_certstatus_st OSSL_CMP_CERTSTATUS;
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_CERTSTATUS");
-}
+/* clang-format on */
typedef struct ossl_cmp_itav_st OSSL_CMP_ITAV;
DECLARE_ASN1_DUP_FUNCTION(OSSL_CMP_ITAV)
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_ITAV");
-}
+/* clang-format on */
typedef struct ossl_cmp_crlstatus_st OSSL_CMP_CRLSTATUS;
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_CRLSTATUS");
-}
+/* clang-format on */
typedef OSSL_CRMF_ATTRIBUTETYPEANDVALUE OSSL_CMP_ATAV;
# define OSSL_CMP_ATAV_free OSSL_CRMF_ATTRIBUTETYPEANDVALUE_free
typedef struct ossl_cmp_pkisi_st OSSL_CMP_PKISI;
DECLARE_ASN1_FUNCTIONS(OSSL_CMP_PKISI)
DECLARE_ASN1_DUP_FUNCTION(OSSL_CMP_PKISI)
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_PKISI");
-}
+/* clang-format on */
typedef struct ossl_cmp_certrepmessage_st OSSL_CMP_CERTREPMESSAGE;
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_CERTREPMESSAGE");
-}
+/* clang-format on */
typedef struct ossl_cmp_pollrep_st OSSL_CMP_POLLREP;
typedef STACK_OF(OSSL_CMP_POLLREP) OSSL_CMP_POLLREPCONTENT;
typedef struct ossl_cmp_certresponse_st OSSL_CMP_CERTRESPONSE;
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_CERTRESPONSE");
-}
+/* clang-format on */
typedef STACK_OF(ASN1_UTF8STRING) OSSL_CMP_PKIFREETEXT;
/*
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CMS_H
# define OPENSSL_CMS_H
typedef struct CMS_RecipientEncryptedKey_st CMS_RecipientEncryptedKey;
typedef struct CMS_OtherKeyAttribute_st CMS_OtherKeyAttribute;
+/* clang-format off */
{-
generate_stack_macros("CMS_SignerInfo")
.generate_stack_macros("CMS_RecipientEncryptedKey")
.generate_stack_macros("CMS_RecipientInfo")
.generate_stack_macros("CMS_RevocationInfoChoice");
-}
+/* clang-format on */
DECLARE_ASN1_ITEM(CMS_EnvelopedData)
DECLARE_ASN1_ALLOC_FUNCTIONS(CMS_SignedData)
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_COMP_H
# define OPENSSL_COMP_H
typedef struct ssl_comp_st SSL_COMP;
+/* clang-format off */
{-
generate_stack_macros("SSL_COMP");
-}
+/* clang-format on */
# ifdef __cplusplus
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros generate_lhash_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CONF_H
# define OPENSSL_CONF_H
char *value;
} CONF_VALUE;
+/* clang-format off */
{-
generate_stack_macros("CONF_VALUE")
.generate_lhash_macros("CONF_VALUE");
-}
+/* clang-format on */
struct conf_st;
struct conf_method_st;
* OpenSSL was configured with the following options:
*/
+/* clang-format off */
{- if (@{$config{openssl_sys_defines}}) {
foreach (@{$config{openssl_sys_defines}}) {
$OUT .= "# ifndef $_\n";
}
"";
-}
+/* clang-format on */
/* Generate 80386 code? */
+/* clang-format off */
{- $config{processor} eq "386" ? "# define" : "# undef" -} I386_ONLY
+/* clang-format on */
/*
* The UEFI build supports both 32-bit and 64-bit builds from a single run
* them in that case.
*/
# if !defined(OPENSSL_SYS_UEFI)
+/* clang-format off */
{- $config{bn_ll} ? "# define" : "# undef" -} BN_LLONG
+/* clang-format on */
/* Only one for the following should be defined */
+/* clang-format off */
{- $config{b64l} ? "# define" : "# undef" -} SIXTY_FOUR_BIT_LONG
+/* clang-format on */
+/* clang-format off */
{- $config{b64} ? "# define" : "# undef" -} SIXTY_FOUR_BIT
+/* clang-format on */
+/* clang-format off */
{- $config{b32} ? "# define" : "# undef" -} THIRTY_TWO_BIT
+/* clang-format on */
# endif
/*
* The following are cipher-specific, but are part of the public API.
*/
+/* clang-format off */
# define RC4_INT {- $config{rc4_int} -}
+/* clang-format on */
# if defined(OPENSSL_NO_COMP) || (defined(OPENSSL_NO_BROTLI) && defined(OPENSSL_NO_ZSTD) && defined(OPENSSL_NO_ZLIB))
# define OPENSSL_NO_COMP_ALG
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(generate_public_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CORE_NAMES_H
# define OPENSSL_CORE_NAMES_H
#define OSSL_KEM_PARAM_OPERATION_DHKEM "DHKEM"
/* Parameter name definitions - generated by util/perl/OpenSSL/paramnames.pm */
+/* clang-format off */
{- generate_public_macros(); -}
+/* clang-format on */
# ifdef __cplusplus
}
* CRMF (RFC 4211) implementation by M. Peylo, M. Viljanen, and D. von Oheimb.
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CRMF_H
# define OPENSSL_CRMF_H
typedef struct ossl_crmf_msg_st OSSL_CRMF_MSG;
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_MSG)
DECLARE_ASN1_DUP_FUNCTION(OSSL_CRMF_MSG)
+/* clang-format off */
{-
generate_stack_macros("OSSL_CRMF_MSG");
-}
+/* clang-format on */
typedef struct ossl_crmf_attributetypeandvalue_st OSSL_CRMF_ATTRIBUTETYPEANDVALUE;
void OSSL_CRMF_ATTRIBUTETYPEANDVALUE_free(OSSL_CRMF_ATTRIBUTETYPEANDVALUE *v);
DECLARE_ASN1_DUP_FUNCTION(OSSL_CRMF_ATTRIBUTETYPEANDVALUE)
+/* clang-format off */
{-
generate_stack_macros("OSSL_CRMF_ATTRIBUTETYPEANDVALUE");
-}
+/* clang-format on */
typedef struct ossl_crmf_pbmparameter_st OSSL_CRMF_PBMPARAMETER;
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_PBMPARAMETER)
typedef struct ossl_crmf_certid_st OSSL_CRMF_CERTID;
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_CERTID)
DECLARE_ASN1_DUP_FUNCTION(OSSL_CRMF_CERTID)
+/* clang-format off */
{-
generate_stack_macros("OSSL_CRMF_CERTID");
-}
+/* clang-format on */
typedef struct ossl_crmf_pkipublicationinfo_st OSSL_CRMF_PKIPUBLICATIONINFO;
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_PKIPUBLICATIONINFO)
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CRYPTO_H
# define OPENSSL_CRYPTO_H
STACK_OF(void) *sk;
};
+/* clang-format off */
{-
generate_stack_macros("void");
-}
+/* clang-format on */
/*
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CT_H
# define OPENSSL_CT_H
/* All hashes are SHA256 in v1 of Certificate Transparency */
# define CT_V1_HASHLEN SHA256_DIGEST_LENGTH
+/* clang-format off */
{-
generate_stack_macros("SCT")
.generate_stack_macros("CTLOG");
-}
+/* clang-format on */
typedef enum {
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_lhash_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_ERR_H
# define OPENSSL_ERR_H
const char *string;
} ERR_STRING_DATA;
+/* clang-format off */
{-
generate_lhash_macros("ERR_STRING_DATA");
-}
+/* clang-format on */
/* 12 lines and some on an 80 column terminal */
#define ERR_MAX_DATA_SIZE 1024
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_ESS_H
# define OPENSSL_ESS_H
typedef struct ESS_cert_id ESS_CERT_ID;
typedef struct ESS_signing_cert ESS_SIGNING_CERT;
+/* clang-format off */
{-
generate_stack_macros("ESS_CERT_ID");
-}
+/* clang-format on */
typedef struct ESS_signing_cert_v2_st ESS_SIGNING_CERT_V2;
typedef struct ESS_cert_id_v2_st ESS_CERT_ID_V2;
+/* clang-format off */
{-
generate_stack_macros("ESS_CERT_ID_V2");
-}
+/* clang-format on */
DECLARE_ASN1_ALLOC_FUNCTIONS(ESS_ISSUER_SERIAL)
DECLARE_ASN1_ENCODE_FUNCTIONS_only(ESS_ISSUER_SERIAL, ESS_ISSUER_SERIAL)
/*
* The FIPS validation HMAC key, usable as an array initializer.
*/
+/* clang-format off */
#define FIPS_KEY_ELEMENTS \
{- join(', ', map { "0x$_" } unpack("(A2)*", $config{FIPSKEY})) -}
+/* clang-format on */
/*
* The FIPS validation key, as a string.
*/
+/* clang-format off */
#define FIPS_KEY_STRING "{- $config{FIPSKEY} -}"
+/* clang-format on */
/*
* The FIPS provider vendor name, as a string.
*/
+/* clang-format off */
#define FIPS_VENDOR "{- $config{FIPS_VENDOR} -}"
+/* clang-format on */
# ifdef __cplusplus
}
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_lhash_macros);
-}
+/* clang-format on */
/*
* Header for dynamic hash table routines Author - Eric Young
} \
LHASH_OF(type)
+/* clang-format off */
{-
generate_lhash_macros("OPENSSL_STRING")
.generate_lhash_macros("OPENSSL_CSTRING");
-}
+/* clang-format on */
#ifdef __cplusplus
}
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_OCSP_H
# define OPENSSL_OCSP_H
typedef struct ocsp_signature_st OCSP_SIGNATURE;
typedef struct ocsp_request_st OCSP_REQUEST;
+/* clang-format off */
{-
generate_stack_macros("OCSP_CERTID")
.generate_stack_macros("OCSP_ONEREQ");
-}
+/* clang-format on */
# define OCSP_RESPONSE_STATUS_SUCCESSFUL 0
# define OCSP_RESPONSE_STATUS_MALFORMEDREQUEST 1
# define V_OCSP_RESPID_NAME 0
# define V_OCSP_RESPID_KEY 1
+/* clang-format off */
{-
generate_stack_macros("OCSP_RESPID");
-}
+/* clang-format on */
typedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO;
typedef struct ocsp_cert_status_st OCSP_CERTSTATUS;
typedef struct ocsp_single_response_st OCSP_SINGLERESP;
+/* clang-format off */
{-
generate_stack_macros("OCSP_SINGLERESP");
-}
+/* clang-format on */
typedef struct ocsp_response_data_st OCSP_RESPDATA;
*
* These macros express version number MAJOR.MINOR.PATCH exactly
*/
+/* clang-format off */
# define OPENSSL_VERSION_MAJOR {- $config{major} -}
+/* clang-format on */
+/* clang-format off */
# define OPENSSL_VERSION_MINOR {- $config{minor} -}
+/* clang-format on */
+/* clang-format off */
# define OPENSSL_VERSION_PATCH {- $config{patch} -}
+/* clang-format on */
/*
* Additional version information
*/
/* Could be: #define OPENSSL_VERSION_PRE_RELEASE "-alpha.1" */
+/* clang-format off */
# define OPENSSL_VERSION_PRE_RELEASE "{- $config{prerelease} -}"
+/* clang-format on */
/* Could be: #define OPENSSL_VERSION_BUILD_METADATA "+fips" */
/* Could be: #define OPENSSL_VERSION_BUILD_METADATA "+vendor.1" */
+/* clang-format off */
# define OPENSSL_VERSION_BUILD_METADATA "{- $config{build_metadata} -}"
+/* clang-format on */
/*
* Note: The OpenSSL Project will never define OPENSSL_VERSION_BUILD_METADATA
* be related to the API version expressed with the macros above.
* This is defined in free form.
*/
+/* clang-format off */
# define OPENSSL_SHLIB_VERSION {- $config{shlib_version} -}
+/* clang-format on */
/*
* SECTION 2: USEFUL MACROS
* longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
* OPENSSL_VERSION_BUILD_METADATA_STR appended.
*/
+/* clang-format off */
# define OPENSSL_VERSION_STR "{- $config{version} -}"
+/* clang-format on */
+/* clang-format off */
# define OPENSSL_FULL_VERSION_STR "{- $config{full_version} -}"
+/* clang-format on */
/*
* SECTION 3: ADDITIONAL METADATA
*
* These strings are defined separately to allow them to be parsable.
*/
+/* clang-format off */
# define OPENSSL_RELEASE_DATE "{- $config{release_date} -}"
+/* clang-format on */
/*
* SECTION 4: BACKWARD COMPATIBILITY
*/
+/* clang-format off */
# define OPENSSL_VERSION_TEXT "OpenSSL {- "$config{full_version} $config{release_date}" -}"
+/* clang-format on */
+/* clang-format off */
/* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PP0L */
# define OPENSSL_VERSION_NUMBER \
( (OPENSSL_VERSION_MAJOR<<28) \
|(OPENSSL_VERSION_MINOR<<20) \
|(OPENSSL_VERSION_PATCH<<4) \
|0x0L )
+/* clang-format on */
# ifdef __cplusplus
}
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_PKCS12_H
# define OPENSSL_PKCS12_H
typedef struct PKCS12_SAFEBAG_st PKCS12_SAFEBAG;
+/* clang-format off */
{-
generate_stack_macros("PKCS12_SAFEBAG");
-}
+/* clang-format on */
typedef struct pkcs12_bag_st PKCS12_BAGS;
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_PKCS7_H
# define OPENSSL_PKCS7_H
EVP_PKEY *pkey;
const PKCS7_CTX *ctx;
} PKCS7_SIGNER_INFO;
+/* clang-format off */
{-
generate_stack_macros("PKCS7_SIGNER_INFO");
-}
+/* clang-format on */
typedef struct pkcs7_recip_info_st {
ASN1_INTEGER *version; /* version 0 */
X509 *cert; /* get the pub-key from this */
const PKCS7_CTX *ctx;
} PKCS7_RECIP_INFO;
+/* clang-format off */
{-
generate_stack_macros("PKCS7_RECIP_INFO");
-}
+/* clang-format on */
typedef struct pkcs7_signed_st {
} d;
PKCS7_CTX ctx;
} PKCS7;
+/* clang-format off */
{-
generate_stack_macros("PKCS7");
-}
+/* clang-format on */
# define PKCS7_OP_SET_DETACHED_SIGNATURE 1
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_string_macros
generate_stack_const_string_macros
generate_stack_block_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_SAFESTACK_H
# define OPENSSL_SAFESTACK_H
* chars. So, we have to implement STRING specially for STACK_OF. This is
* dealt with in the autogenerated macros below.
*/
+/* clang-format off */
{-
generate_stack_string_macros()
.generate_stack_const_string_macros();
-}
+/* clang-format on */
#if !defined(OPENSSL_NO_DEPRECATED_3_0)
/*
* These should also be distinguished from "normal" stacks.
*/
typedef void *OPENSSL_BLOCK;
+/* clang-format off */
{-
generate_stack_block_macros();
-}
+/* clang-format on */
#endif
# ifdef __cplusplus
* for the EdelKey project.
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_SRP_H
# define OPENSSL_SRP_H
char *b64_bn;
BIGNUM *bn;
} SRP_gN_cache;
+/* clang-format off */
{-
generate_stack_macros("SRP_gN_cache");
-}
+/* clang-format on */
typedef struct SRP_user_pwd_st {
/* Owned by us. */
char *info;
} SRP_user_pwd;
+/* clang-format off */
{-
generate_stack_macros("SRP_user_pwd");
-}
+/* clang-format on */
OSSL_DEPRECATEDIN_3_0
SRP_user_pwd *SRP_user_pwd_new(void);
const BIGNUM *g;
const BIGNUM *N;
} SRP_gN;
+/* clang-format off */
{-
generate_stack_macros("SRP_gN");
-}
+/* clang-format on */
OSSL_DEPRECATEDIN_3_0
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros generate_const_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_SSL_H
# define OPENSSL_SSL_H
const char *name;
unsigned long id;
} SRTP_PROTECTION_PROFILE;
+/* clang-format off */
{-
generate_stack_macros("SRTP_PROTECTION_PROFILE");
-}
+/* clang-format on */
typedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data,
* These need to be after the above set of includes due to a compiler bug
* in VisualStudio 2015
*/
+/* clang-format off */
{-
generate_const_stack_macros("SSL_CIPHER");
-}
+/* clang-format on */
/* compatibility */
# define SSL_set_app_data(s,arg) (SSL_set_ex_data(s,0,(char *)(arg)))
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_UI_H
# define OPENSSL_UI_H
*/
typedef struct ui_string_st UI_STRING;
+/* clang-format off */
{-
generate_stack_macros("UI_STRING");
-}
+/* clang-format on */
/*
* The different types of strings that are currently supported. This is only
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_X509_H
# define OPENSSL_X509_H
#endif
/* Needed stacks for types defined in other headers */
+/* clang-format off */
{-
generate_stack_macros("X509_NAME")
.generate_stack_macros("X509")
.generate_stack_macros("X509_REVOKED")
.generate_stack_macros("X509_CRL");
-}
+/* clang-format on */
/* Flags for X509_get_signature_info() */
/* Signature info is valid */
typedef struct X509_name_entry_st X509_NAME_ENTRY;
+/* clang-format off */
{-
generate_stack_macros("X509_NAME_ENTRY");
-}
+/* clang-format on */
# define X509_EX_V_NETSCAPE_HACK 0x8000
# define X509_EX_V_INIT 0x0001
typedef struct X509_extension_st X509_EXTENSION;
+/* clang-format off */
{-
generate_stack_macros("X509_EXTENSION");
-}
+/* clang-format on */
typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;
typedef struct x509_attributes_st X509_ATTRIBUTE;
+/* clang-format off */
{-
generate_stack_macros("X509_ATTRIBUTE");
-}
+/* clang-format on */
typedef struct X509_req_info_st X509_REQ_INFO;
typedef struct X509_req_st X509_REQ;
typedef struct x509_cert_aux_st X509_CERT_AUX;
int enc_len;
char *enc_data;
} X509_INFO;
+/* clang-format off */
{-
generate_stack_macros("X509_INFO");
-}
+/* clang-format on */
/*
* The next 2 structures and their 8 routines are used to manipulate Netscape's
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_X509_ACERT_H
# define OPENSSL_X509_ACERT_H
typedef struct OSSL_IETF_ATTR_SYNTAX_VALUE_st OSSL_IETF_ATTR_SYNTAX_VALUE;
typedef struct OSSL_IETF_ATTR_SYNTAX_st OSSL_IETF_ATTR_SYNTAX;
+/* clang-format off */
{-
generate_stack_macros("OSSL_IETF_ATTR_SYNTAX_VALUE");
-}
+/* clang-format on */
DECLARE_ASN1_ITEM(OSSL_IETF_ATTR_SYNTAX_VALUE)
DECLARE_ASN1_ALLOC_FUNCTIONS(OSSL_IETF_ATTR_SYNTAX_VALUE)
typedef STACK_OF(OSSL_TARGET) OSSL_TARGETS;
typedef STACK_OF(OSSL_TARGETS) OSSL_TARGETING_INFORMATION;
+/* clang-format off */
{-
generate_stack_macros("OSSL_TARGET");
-}
+/* clang-format on */
+/* clang-format off */
{-
generate_stack_macros("OSSL_TARGETS");
-}
+/* clang-format on */
DECLARE_ASN1_FUNCTIONS(OSSL_TARGET)
DECLARE_ASN1_FUNCTIONS(OSSL_TARGETS)
typedef STACK_OF(OSSL_ISSUER_SERIAL) OSSL_AUTHORITY_ATTRIBUTE_ID_SYNTAX;
DECLARE_ASN1_FUNCTIONS(OSSL_AUTHORITY_ATTRIBUTE_ID_SYNTAX)
+/* clang-format off */
{-
generate_stack_macros("OSSL_ISSUER_SERIAL");
-}
+/* clang-format on */
#endif
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_X509_VFY_H
# define OPENSSL_X509_VFY_H
#define X509_LU_FAIL 0
#endif
+/* clang-format off */
{-
generate_stack_macros("X509_LOOKUP")
.generate_stack_macros("X509_OBJECT")
.generate_stack_macros("X509_VERIFY_PARAM");
-}
+/* clang-format on */
/* This is used for a table of trust checking functions */
typedef struct x509_trust_st {
int arg1;
void *arg2;
} X509_TRUST;
+/* clang-format off */
{-
generate_stack_macros("X509_TRUST");
-}
+/* clang-format on */
/* standard trust ids */
# define X509_TRUST_DEFAULT 0 /* Only valid in purpose settings */
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_X509V3_H
# define OPENSSL_X509V3_H
typedef struct v3_ext_method X509V3_EXT_METHOD;
+/* clang-format off */
{-
generate_stack_macros("X509V3_EXT_METHOD");
-}
+/* clang-format on */
/* ext_flags values */
# define X509V3_EXT_DYNAMIC 0x1
int GENERAL_NAME_set1_X509_NAME(GENERAL_NAME **tgt, const X509_NAME *src);
+/* clang-format off */
{-
generate_stack_macros("ACCESS_DESCRIPTION")
.generate_stack_macros("GENERAL_NAME");
-}
+/* clang-format on */
typedef STACK_OF(ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS;
typedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE;
typedef STACK_OF(ASN1_INTEGER) TLS_FEATURE;
typedef STACK_OF(GENERAL_NAME) GENERAL_NAMES;
+/* clang-format off */
{-
generate_stack_macros("GENERAL_NAMES");
-}
+/* clang-format on */
typedef struct DIST_POINT_NAME_st {
int type;
int dp_reasons;
};
+/* clang-format off */
{-
generate_stack_macros("DIST_POINT");
-}
+/* clang-format on */
typedef STACK_OF(DIST_POINT) CRL_DIST_POINTS;
ASN1_OCTET_STRING *user;
} SXNETID;
+/* clang-format off */
{-
generate_stack_macros("SXNETID");
-}
+/* clang-format on */
typedef struct SXNET_st {
} d;
} POLICYQUALINFO;
+/* clang-format off */
{-
generate_stack_macros("POLICYQUALINFO");
-}
+/* clang-format on */
typedef struct POLICYINFO_st {
STACK_OF(POLICYQUALINFO) *qualifiers;
} POLICYINFO;
+/* clang-format off */
{-
generate_stack_macros("POLICYINFO");
-}
+/* clang-format on */
typedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES;
ASN1_OBJECT *subjectDomainPolicy;
} POLICY_MAPPING;
+/* clang-format off */
{-
generate_stack_macros("POLICY_MAPPING");
-}
+/* clang-format on */
typedef STACK_OF(POLICY_MAPPING) POLICY_MAPPINGS;
ASN1_INTEGER *maximum;
} GENERAL_SUBTREE;
+/* clang-format off */
{-
generate_stack_macros("GENERAL_SUBTREE");
-}
+/* clang-format on */
struct NAME_CONSTRAINTS_st {
STACK_OF(GENERAL_SUBTREE) *permittedSubtrees;
0,0,0,0, \
NULL}
+/* clang-format off */
# define EXT_END { -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
+/* clang-format on */
/* X509_PURPOSE stuff */
void *usr_data;
} X509_PURPOSE;
+/* clang-format off */
{-
generate_stack_macros("X509_PURPOSE");
-}
+/* clang-format on */
# define X509_PURPOSE_DEFAULT_ANY 0
# define X509_PURPOSE_SSL_CLIENT 1
unsigned long chtype);
void X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent);
+/* clang-format off */
{-
generate_stack_macros("X509_POLICY_NODE");
-}
+/* clang-format on */
#ifndef OPENSSL_NO_RFC3779
} u;
} ASIdOrRange;
+/* clang-format off */
{-
generate_stack_macros("ASIdOrRange");
-}
+/* clang-format on */
typedef STACK_OF(ASIdOrRange) ASIdOrRanges;
} u;
} IPAddressOrRange;
+/* clang-format off */
{-
generate_stack_macros("IPAddressOrRange");
-}
+/* clang-format on */
typedef STACK_OF(IPAddressOrRange) IPAddressOrRanges;
IPAddressChoice *ipAddressChoice;
} IPAddressFamily;
+/* clang-format off */
{-
generate_stack_macros("IPAddressFamily");
-}
+/* clang-format on */
typedef STACK_OF(IPAddressFamily) IPAddrBlocks;
#endif /* OPENSSL_NO_RFC3779 */
+/* clang-format off */
{-
generate_stack_macros("ASN1_STRING");
-}
+/* clang-format on */
/*
* Admission Syntax
DECLARE_ASN1_FUNCTIONS(PROFESSION_INFO)
DECLARE_ASN1_FUNCTIONS(ADMISSIONS)
DECLARE_ASN1_FUNCTIONS(ADMISSION_SYNTAX)
+/* clang-format off */
{-
generate_stack_macros("PROFESSION_INFO")
.generate_stack_macros("ADMISSIONS");
-}
+/* clang-format on */
typedef STACK_OF(PROFESSION_INFO) PROFESSION_INFOS;
const ASN1_OBJECT *NAMING_AUTHORITY_get0_authorityId(
typedef STACK_OF(USERNOTICE) OSSL_USER_NOTICE_SYNTAX;
DECLARE_ASN1_FUNCTIONS(OSSL_USER_NOTICE_SYNTAX)
+/* clang-format off */
{-
generate_stack_macros("USERNOTICE");
-}
+/* clang-format on */
typedef struct OSSL_ROLE_SPEC_CERT_ID_st {
GENERAL_NAME *roleName;
DECLARE_ASN1_FUNCTIONS(OSSL_ROLE_SPEC_CERT_ID)
+/* clang-format off */
{-
generate_stack_macros("OSSL_ROLE_SPEC_CERT_ID");
-}
+/* clang-format on */
typedef STACK_OF(OSSL_ROLE_SPEC_CERT_ID) OSSL_ROLE_SPEC_CERT_ID_SYNTAX;
DECLARE_ASN1_FUNCTIONS(OSSL_TIME_SPEC)
DECLARE_ASN1_FUNCTIONS(OSSL_TIME_PERIOD)
+/* clang-format off */
{-
generate_stack_macros("OSSL_TIME_PERIOD");
-}
+/* clang-format on */
+/* clang-format off */
{-
generate_stack_macros("OSSL_DAY_TIME_BAND");
-}
+/* clang-format on */
/* Attribute Type and Value */
typedef struct atav_st {
DECLARE_ASN1_FUNCTIONS(OSSL_ATTRIBUTE_MAPPING)
DECLARE_ASN1_FUNCTIONS(OSSL_ATTRIBUTE_MAPPINGS)
+/* clang-format off */
{-
generate_stack_macros("OSSL_ATTRIBUTE_MAPPING");
-}
+/* clang-format on */
# define OSSL_AAA_ATTRIBUTE_TYPE 0
# define OSSL_AAA_ATTRIBUTE_VALUES 1
DECLARE_ASN1_FUNCTIONS(OSSL_ALLOWED_ATTRIBUTES_ITEM)
DECLARE_ASN1_FUNCTIONS(OSSL_ALLOWED_ATTRIBUTES_SYNTAX)
+/* clang-format off */
{-
generate_stack_macros("OSSL_ALLOWED_ATTRIBUTES_CHOICE");
-}
+/* clang-format on */
+/* clang-format off */
{-
generate_stack_macros("OSSL_ALLOWED_ATTRIBUTES_ITEM");
-}
+/* clang-format on */
typedef struct AA_DIST_POINT_st {
DIST_POINT_NAME *distpoint;
#include "prov/der_digests.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1',
'providers/common/der/DIGESTS.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_dsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_ec.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/EC.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_ecx.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/ECX.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_hkdf.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/HKDF.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_ml_dsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/ML_DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_rsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1',
'providers/common/der/RSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_slh_dsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/SLH_DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_sm2.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/SM2.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_wrap.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/wrap.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1',
'providers/common/der/DIGESTS.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
/* Subject Public Key Info */
int ossl_DER_w_algorithmIdentifier_DSA(WPACKET *pkt, int tag, DSA *dsa);
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/EC.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
/* Subject Public Key Info */
int ossl_DER_w_algorithmIdentifier_EC(WPACKET *pkt, int cont, EC_KEY *ec);
#include "crypto/ecx.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/ECX.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
int ossl_DER_w_algorithmIdentifier_ED25519(WPACKET *pkt, int cont, ECX_KEY *ec);
int ossl_DER_w_algorithmIdentifier_ED448(WPACKET *pkt, int cont, ECX_KEY *ec);
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/HKDF.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
#include "crypto/ml_dsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/ML_DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
int ossl_DER_w_algorithmIdentifier_ML_DSA(WPACKET *pkt, int tag, ML_DSA_KEY *key);
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1',
'providers/common/der/RSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
/* PSS parameters */
int ossl_DER_w_RSASSA_PSS_params(WPACKET *pkt, int tag,
#include "crypto/slh_dsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/SLH_DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
int ossl_DER_w_algorithmIdentifier_SLH_DSA(WPACKET *pkt, int tag, SLH_DSA_KEY *key);
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/SM2.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
/* Subject Public Key Info */
int ossl_DER_w_algorithmIdentifier_SM2(WPACKET *pkt, int cont, EC_KEY *ec);
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/wrap.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */