- refresh OpenSSL include headers
This commit is contained in:
parent
e391777739
commit
9fae569a23
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -8,9 +8,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is only used by HP C on VMS, and is included automatically
|
* This file is only used by HP C/C++ on VMS, and is included automatically
|
||||||
* after each header file from this directory
|
* after each header file from this directory
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The C++ compiler doesn't understand these pragmas, even though it
|
||||||
|
* understands the corresponding command line qualifier.
|
||||||
|
*/
|
||||||
|
#ifndef __cplusplus
|
||||||
/* restore state. Must correspond to the save in __decc_include_prologue.h */
|
/* restore state. Must correspond to the save in __decc_include_prologue.h */
|
||||||
#pragma names restore
|
# pragma names restore
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -8,13 +8,19 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is only used by HP C on VMS, and is included automatically
|
* This file is only used by HP C/C++ on VMS, and is included automatically
|
||||||
* after each header file from this directory
|
* after each header file from this directory
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The C++ compiler doesn't understand these pragmas, even though it
|
||||||
|
* understands the corresponding command line qualifier.
|
||||||
|
*/
|
||||||
|
#ifndef __cplusplus
|
||||||
/* save state */
|
/* save state */
|
||||||
#pragma names save
|
# pragma names save
|
||||||
/* have the compiler shorten symbols larger than 31 chars to 23 chars
|
/* have the compiler shorten symbols larger than 31 chars to 23 chars
|
||||||
* followed by a 8 hex char CRC
|
* followed by a 8 hex char CRC
|
||||||
*/
|
*/
|
||||||
#pragma names as_is,shortened
|
# pragma names as_is,shortened
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,8 @@
|
||||||
#ifndef HEADER_ASN1ERR_H
|
#ifndef HEADER_ASN1ERR_H
|
||||||
# define HEADER_ASN1ERR_H
|
# define HEADER_ASN1ERR_H
|
||||||
|
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
@ -49,6 +51,7 @@ int ERR_load_ASN1_strings(void);
|
||||||
# define ASN1_F_ASN1_ITEM_DUP 191
|
# define ASN1_F_ASN1_ITEM_DUP 191
|
||||||
# define ASN1_F_ASN1_ITEM_EMBED_D2I 120
|
# define ASN1_F_ASN1_ITEM_EMBED_D2I 120
|
||||||
# define ASN1_F_ASN1_ITEM_EMBED_NEW 121
|
# define ASN1_F_ASN1_ITEM_EMBED_NEW 121
|
||||||
|
# define ASN1_F_ASN1_ITEM_EX_I2D 144
|
||||||
# define ASN1_F_ASN1_ITEM_FLAGS_I2D 118
|
# define ASN1_F_ASN1_ITEM_FLAGS_I2D 118
|
||||||
# define ASN1_F_ASN1_ITEM_I2D_BIO 192
|
# define ASN1_F_ASN1_ITEM_I2D_BIO 192
|
||||||
# define ASN1_F_ASN1_ITEM_I2D_FP 193
|
# define ASN1_F_ASN1_ITEM_I2D_FP 193
|
||||||
|
|
@ -141,6 +144,7 @@ int ERR_load_ASN1_strings(void);
|
||||||
# define ASN1_R_ASN1_SIG_PARSE_ERROR 204
|
# define ASN1_R_ASN1_SIG_PARSE_ERROR 204
|
||||||
# define ASN1_R_AUX_ERROR 100
|
# define ASN1_R_AUX_ERROR 100
|
||||||
# define ASN1_R_BAD_OBJECT_HEADER 102
|
# define ASN1_R_BAD_OBJECT_HEADER 102
|
||||||
|
# define ASN1_R_BAD_TEMPLATE 230
|
||||||
# define ASN1_R_BMPSTRING_IS_WRONG_LENGTH 214
|
# define ASN1_R_BMPSTRING_IS_WRONG_LENGTH 214
|
||||||
# define ASN1_R_BN_LIB 105
|
# define ASN1_R_BN_LIB 105
|
||||||
# define ASN1_R_BOOLEAN_IS_WRONG_LENGTH 106
|
# define ASN1_R_BOOLEAN_IS_WRONG_LENGTH 106
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_ASYNCERR_H
|
#ifndef HEADER_ASYNCERR_H
|
||||||
# define HEADER_ASYNCERR_H
|
# define HEADER_ASYNCERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -20,10 +20,6 @@
|
||||||
# include <openssl/crypto.h>
|
# include <openssl/crypto.h>
|
||||||
# include <openssl/bioerr.h>
|
# include <openssl/bioerr.h>
|
||||||
|
|
||||||
# ifndef OPENSSL_NO_SCTP
|
|
||||||
# include <openssl/e_os2.h>
|
|
||||||
# endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -173,6 +169,7 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
# define BIO_FLAGS_MEM_RDONLY 0x200
|
# define BIO_FLAGS_MEM_RDONLY 0x200
|
||||||
# define BIO_FLAGS_NONCLEAR_RST 0x400
|
# define BIO_FLAGS_NONCLEAR_RST 0x400
|
||||||
|
# define BIO_FLAGS_IN_EOF 0x800
|
||||||
|
|
||||||
typedef union bio_addr_st BIO_ADDR;
|
typedef union bio_addr_st BIO_ADDR;
|
||||||
typedef struct bio_addrinfo_st BIO_ADDRINFO;
|
typedef struct bio_addrinfo_st BIO_ADDRINFO;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_BIOERR_H
|
#ifndef HEADER_BIOERR_H
|
||||||
# define HEADER_BIOERR_H
|
# define HEADER_BIOERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
|
|
@ -56,7 +56,7 @@ extern "C" {
|
||||||
* avoid leaking exponent information through timing,
|
* avoid leaking exponent information through timing,
|
||||||
* BN_mod_exp_mont() will call BN_mod_exp_mont_consttime,
|
* BN_mod_exp_mont() will call BN_mod_exp_mont_consttime,
|
||||||
* BN_div() will call BN_div_no_branch,
|
* BN_div() will call BN_div_no_branch,
|
||||||
* BN_mod_inverse() will call BN_mod_inverse_no_branch.
|
* BN_mod_inverse() will call bn_mod_inverse_no_branch.
|
||||||
*/
|
*/
|
||||||
# define BN_FLG_CONSTTIME 0x04
|
# define BN_FLG_CONSTTIME 0x04
|
||||||
# define BN_FLG_SECURE 0x08
|
# define BN_FLG_SECURE 0x08
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_BNERR_H
|
#ifndef HEADER_BNERR_H
|
||||||
# define HEADER_BNERR_H
|
# define HEADER_BNERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_BUFERR_H
|
#ifndef HEADER_BUFERR_H
|
||||||
# define HEADER_BUFERR_H
|
# define HEADER_BUFERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2008-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 2008-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -284,8 +284,6 @@ int CMS_unsigned_add1_attr_by_txt(CMS_SignerInfo *si,
|
||||||
void *CMS_unsigned_get0_data_by_OBJ(CMS_SignerInfo *si, ASN1_OBJECT *oid,
|
void *CMS_unsigned_get0_data_by_OBJ(CMS_SignerInfo *si, ASN1_OBJECT *oid,
|
||||||
int lastpos, int type);
|
int lastpos, int type);
|
||||||
|
|
||||||
# ifdef HEADER_X509V3_H
|
|
||||||
|
|
||||||
int CMS_get1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest **prr);
|
int CMS_get1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest **prr);
|
||||||
CMS_ReceiptRequest *CMS_ReceiptRequest_create0(unsigned char *id, int idlen,
|
CMS_ReceiptRequest *CMS_ReceiptRequest_create0(unsigned char *id, int idlen,
|
||||||
int allorfirst,
|
int allorfirst,
|
||||||
|
|
@ -298,7 +296,6 @@ void CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest *rr,
|
||||||
int *pallorfirst,
|
int *pallorfirst,
|
||||||
STACK_OF(GENERAL_NAMES) **plist,
|
STACK_OF(GENERAL_NAMES) **plist,
|
||||||
STACK_OF(GENERAL_NAMES) **prto);
|
STACK_OF(GENERAL_NAMES) **prto);
|
||||||
# endif
|
|
||||||
int CMS_RecipientInfo_kari_get0_alg(CMS_RecipientInfo *ri,
|
int CMS_RecipientInfo_kari_get0_alg(CMS_RecipientInfo *ri,
|
||||||
X509_ALGOR **palg,
|
X509_ALGOR **palg,
|
||||||
ASN1_OCTET_STRING **pukm);
|
ASN1_OCTET_STRING **pukm);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_CMSERR_H
|
#ifndef HEADER_CMSERR_H
|
||||||
# define HEADER_CMSERR_H
|
# define HEADER_CMSERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# include <openssl/opensslconf.h>
|
# include <openssl/opensslconf.h>
|
||||||
|
|
||||||
# ifndef OPENSSL_NO_CMS
|
# ifndef OPENSSL_NO_CMS
|
||||||
|
|
@ -101,6 +105,7 @@ int ERR_load_CMS_strings(void);
|
||||||
# define CMS_F_CMS_SIGNERINFO_VERIFY_CERT 153
|
# define CMS_F_CMS_SIGNERINFO_VERIFY_CERT 153
|
||||||
# define CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT 154
|
# define CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT 154
|
||||||
# define CMS_F_CMS_SIGN_RECEIPT 163
|
# define CMS_F_CMS_SIGN_RECEIPT 163
|
||||||
|
# define CMS_F_CMS_SI_CHECK_ATTRIBUTES 183
|
||||||
# define CMS_F_CMS_STREAM 155
|
# define CMS_F_CMS_STREAM 155
|
||||||
# define CMS_F_CMS_UNCOMPRESS 156
|
# define CMS_F_CMS_UNCOMPRESS 156
|
||||||
# define CMS_F_CMS_VERIFY 157
|
# define CMS_F_CMS_VERIFY 157
|
||||||
|
|
@ -110,6 +115,7 @@ int ERR_load_CMS_strings(void);
|
||||||
* CMS reason codes.
|
* CMS reason codes.
|
||||||
*/
|
*/
|
||||||
# define CMS_R_ADD_SIGNER_ERROR 99
|
# define CMS_R_ADD_SIGNER_ERROR 99
|
||||||
|
# define CMS_R_ATTRIBUTE_ERROR 161
|
||||||
# define CMS_R_CERTIFICATE_ALREADY_PRESENT 175
|
# define CMS_R_CERTIFICATE_ALREADY_PRESENT 175
|
||||||
# define CMS_R_CERTIFICATE_HAS_NO_KEYID 160
|
# define CMS_R_CERTIFICATE_HAS_NO_KEYID 160
|
||||||
# define CMS_R_CERTIFICATE_VERIFY_ERROR 100
|
# define CMS_R_CERTIFICATE_VERIFY_ERROR 100
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_COMPERR_H
|
#ifndef HEADER_COMPERR_H
|
||||||
# define HEADER_COMPERR_H
|
# define HEADER_COMPERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# include <openssl/opensslconf.h>
|
# include <openssl/opensslconf.h>
|
||||||
|
|
||||||
# ifndef OPENSSL_NO_COMP
|
# ifndef OPENSSL_NO_COMP
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_CONFERR_H
|
#ifndef HEADER_CONFERR_H
|
||||||
# define HEADER_CONFERR_H
|
# define HEADER_CONFERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
|
|
@ -109,13 +109,8 @@ DEFINE_STACK_OF(void)
|
||||||
# define CRYPTO_EX_INDEX_DRBG 15
|
# define CRYPTO_EX_INDEX_DRBG 15
|
||||||
# define CRYPTO_EX_INDEX__COUNT 16
|
# define CRYPTO_EX_INDEX__COUNT 16
|
||||||
|
|
||||||
/*
|
/* No longer needed, so this is a no-op */
|
||||||
* This is the default callbacks, but we can have others as well: this is
|
#define OPENSSL_malloc_init() while(0) continue
|
||||||
* needed in Win32 where the application malloc and the library malloc may
|
|
||||||
* not be the same.
|
|
||||||
*/
|
|
||||||
#define OPENSSL_malloc_init() \
|
|
||||||
CRYPTO_set_mem_functions(CRYPTO_malloc, CRYPTO_realloc, CRYPTO_free)
|
|
||||||
|
|
||||||
int CRYPTO_mem_ctrl(int mode);
|
int CRYPTO_mem_ctrl(int mode);
|
||||||
|
|
||||||
|
|
@ -377,6 +372,7 @@ int CRYPTO_memcmp(const void * in_a, const void * in_b, size_t len);
|
||||||
/* OPENSSL_INIT_ZLIB 0x00010000L */
|
/* OPENSSL_INIT_ZLIB 0x00010000L */
|
||||||
# define OPENSSL_INIT_ATFORK 0x00020000L
|
# define OPENSSL_INIT_ATFORK 0x00020000L
|
||||||
/* OPENSSL_INIT_BASE_ONLY 0x00040000L */
|
/* OPENSSL_INIT_BASE_ONLY 0x00040000L */
|
||||||
|
# define OPENSSL_INIT_NO_ATEXIT 0x00080000L
|
||||||
/* OPENSSL_INIT flag range 0xfff00000 reserved for OPENSSL_init_ssl() */
|
/* OPENSSL_INIT flag range 0xfff00000 reserved for OPENSSL_init_ssl() */
|
||||||
/* Max OPENSSL_INIT flag value is 0x80000000 */
|
/* Max OPENSSL_INIT flag value is 0x80000000 */
|
||||||
|
|
||||||
|
|
@ -396,8 +392,12 @@ void OPENSSL_thread_stop(void);
|
||||||
/* Low-level control of initialization */
|
/* Low-level control of initialization */
|
||||||
OPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(void);
|
OPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(void);
|
||||||
# ifndef OPENSSL_NO_STDIO
|
# ifndef OPENSSL_NO_STDIO
|
||||||
|
int OPENSSL_INIT_set_config_filename(OPENSSL_INIT_SETTINGS *settings,
|
||||||
|
const char *config_filename);
|
||||||
|
void OPENSSL_INIT_set_config_file_flags(OPENSSL_INIT_SETTINGS *settings,
|
||||||
|
unsigned long flags);
|
||||||
int OPENSSL_INIT_set_config_appname(OPENSSL_INIT_SETTINGS *settings,
|
int OPENSSL_INIT_set_config_appname(OPENSSL_INIT_SETTINGS *settings,
|
||||||
const char *config_file);
|
const char *config_appname);
|
||||||
# endif
|
# endif
|
||||||
void OPENSSL_INIT_free(OPENSSL_INIT_SETTINGS *settings);
|
void OPENSSL_INIT_free(OPENSSL_INIT_SETTINGS *settings);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_CRYPTOERR_H
|
#ifndef HEADER_CRYPTOERR_H
|
||||||
# define HEADER_CRYPTOERR_H
|
# define HEADER_CRYPTOERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -463,8 +463,6 @@ __owur int CTLOG_STORE_load_file(CTLOG_STORE *store, const char *file);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Loads the default CT log list into a |store|.
|
* Loads the default CT log list into a |store|.
|
||||||
* See internal/cryptlib.h for the environment variable and file path that are
|
|
||||||
* consulted to find the default file.
|
|
||||||
* Returns 1 if loading is successful, or 0 otherwise.
|
* Returns 1 if loading is successful, or 0 otherwise.
|
||||||
*/
|
*/
|
||||||
__owur int CTLOG_STORE_load_default_file(CTLOG_STORE *store);
|
__owur int CTLOG_STORE_load_default_file(CTLOG_STORE *store);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_CTERR_H
|
#ifndef HEADER_CTERR_H
|
||||||
# define HEADER_CTERR_H
|
# define HEADER_CTERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# include <openssl/opensslconf.h>
|
# include <openssl/opensslconf.h>
|
||||||
|
|
||||||
# ifndef OPENSSL_NO_CT
|
# ifndef OPENSSL_NO_CT
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_DHERR_H
|
#ifndef HEADER_DHERR_H
|
||||||
# define HEADER_DHERR_H
|
# define HEADER_DHERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# include <openssl/opensslconf.h>
|
# include <openssl/opensslconf.h>
|
||||||
|
|
||||||
# ifndef OPENSSL_NO_DH
|
# ifndef OPENSSL_NO_DH
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,12 @@ DH *DSA_dup_DH(const DSA *r);
|
||||||
# define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \
|
# define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \
|
||||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \
|
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \
|
||||||
EVP_PKEY_CTRL_DSA_PARAMGEN_BITS, nbits, NULL)
|
EVP_PKEY_CTRL_DSA_PARAMGEN_BITS, nbits, NULL)
|
||||||
|
# define EVP_PKEY_CTX_set_dsa_paramgen_q_bits(ctx, qbits) \
|
||||||
|
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \
|
||||||
|
EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS, qbits, NULL)
|
||||||
|
# define EVP_PKEY_CTX_set_dsa_paramgen_md(ctx, md) \
|
||||||
|
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \
|
||||||
|
EVP_PKEY_CTRL_DSA_PARAMGEN_MD, 0, (void *)(md))
|
||||||
|
|
||||||
# define EVP_PKEY_CTRL_DSA_PARAMGEN_BITS (EVP_PKEY_ALG_CTRL + 1)
|
# define EVP_PKEY_CTRL_DSA_PARAMGEN_BITS (EVP_PKEY_ALG_CTRL + 1)
|
||||||
# define EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS (EVP_PKEY_ALG_CTRL + 2)
|
# define EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS (EVP_PKEY_ALG_CTRL + 2)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_DSAERR_H
|
#ifndef HEADER_DSAERR_H
|
||||||
# define HEADER_DSAERR_H
|
# define HEADER_DSAERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# include <openssl/opensslconf.h>
|
# include <openssl/opensslconf.h>
|
||||||
|
|
||||||
# ifndef OPENSSL_NO_DSA
|
# ifndef OPENSSL_NO_DSA
|
||||||
|
|
@ -57,6 +61,7 @@ int ERR_load_DSA_strings(void);
|
||||||
# define DSA_R_INVALID_DIGEST_TYPE 106
|
# define DSA_R_INVALID_DIGEST_TYPE 106
|
||||||
# define DSA_R_INVALID_PARAMETERS 112
|
# define DSA_R_INVALID_PARAMETERS 112
|
||||||
# define DSA_R_MISSING_PARAMETERS 101
|
# define DSA_R_MISSING_PARAMETERS 101
|
||||||
|
# define DSA_R_MISSING_PRIVATE_KEY 111
|
||||||
# define DSA_R_MODULUS_TOO_LARGE 103
|
# define DSA_R_MODULUS_TOO_LARGE 103
|
||||||
# define DSA_R_NO_PARAMETERS_SET 107
|
# define DSA_R_NO_PARAMETERS_SET 107
|
||||||
# define DSA_R_PARAMETER_ENCODING_ERROR 105
|
# define DSA_R_PARAMETER_ENCODING_ERROR 105
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ extern "C" {
|
||||||
|
|
||||||
# define DTLS1_AL_HEADER_LENGTH 2
|
# define DTLS1_AL_HEADER_LENGTH 2
|
||||||
|
|
||||||
/* Timeout multipliers (timeout slice is defined in apps/timeouts.h */
|
/* Timeout multipliers */
|
||||||
# define DTLS1_TMO_READ_COUNT 2
|
# define DTLS1_TMO_READ_COUNT 2
|
||||||
# define DTLS1_TMO_WRITE_COUNT 2
|
# define DTLS1_TMO_WRITE_COUNT 2
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -241,7 +241,7 @@ typedef UINT64 uint64_t;
|
||||||
defined(__osf__) || defined(__sgi) || defined(__hpux) || \
|
defined(__osf__) || defined(__sgi) || defined(__hpux) || \
|
||||||
defined(OPENSSL_SYS_VMS) || defined (__OpenBSD__)
|
defined(OPENSSL_SYS_VMS) || defined (__OpenBSD__)
|
||||||
# include <inttypes.h>
|
# include <inttypes.h>
|
||||||
# elif defined(_MSC_VER) && _MSC_VER<=1500
|
# elif defined(_MSC_VER) && _MSC_VER<1600
|
||||||
/*
|
/*
|
||||||
* minimally required typdefs for systems not supporting inttypes.h or
|
* minimally required typdefs for systems not supporting inttypes.h or
|
||||||
* stdint.h: currently just older VC++
|
* stdint.h: currently just older VC++
|
||||||
|
|
@ -279,7 +279,8 @@ typedef unsigned __int64 uint64_t;
|
||||||
# define ossl_inline inline
|
# define ossl_inline inline
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && \
|
||||||
|
!defined(__cplusplus)
|
||||||
# define ossl_noreturn _Noreturn
|
# define ossl_noreturn _Noreturn
|
||||||
# elif defined(__GNUC__) && __GNUC__ >= 2
|
# elif defined(__GNUC__) && __GNUC__ >= 2
|
||||||
# define ossl_noreturn __attribute__((noreturn))
|
# define ossl_noreturn __attribute__((noreturn))
|
||||||
|
|
@ -287,6 +288,13 @@ typedef unsigned __int64 uint64_t;
|
||||||
# define ossl_noreturn
|
# define ossl_noreturn
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
/* ossl_unused: portable unused attribute for use in public headers */
|
||||||
|
# if defined(__GNUC__)
|
||||||
|
# define ossl_unused __attribute__((unused))
|
||||||
|
# else
|
||||||
|
# define ossl_unused
|
||||||
|
# endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 2002-2021 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
|
|
@ -142,7 +142,7 @@ const EC_METHOD *EC_GROUP_method_of(const EC_GROUP *group);
|
||||||
*/
|
*/
|
||||||
int EC_METHOD_get_field_type(const EC_METHOD *meth);
|
int EC_METHOD_get_field_type(const EC_METHOD *meth);
|
||||||
|
|
||||||
/** Sets the generator and it's order/cofactor of a EC_GROUP object.
|
/** Sets the generator and its order/cofactor of a EC_GROUP object.
|
||||||
* \param group EC_GROUP object
|
* \param group EC_GROUP object
|
||||||
* \param generator EC_POINT object with the generator.
|
* \param generator EC_POINT object with the generator.
|
||||||
* \param order the order of the group generated by the generator.
|
* \param order the order of the group generated by the generator.
|
||||||
|
|
@ -793,12 +793,15 @@ int EC_GROUP_get_pentanomial_basis(const EC_GROUP *, unsigned int *k1,
|
||||||
EC_GROUP *d2i_ECPKParameters(EC_GROUP **, const unsigned char **in, long len);
|
EC_GROUP *d2i_ECPKParameters(EC_GROUP **, const unsigned char **in, long len);
|
||||||
int i2d_ECPKParameters(const EC_GROUP *, unsigned char **out);
|
int i2d_ECPKParameters(const EC_GROUP *, unsigned char **out);
|
||||||
|
|
||||||
# define d2i_ECPKParameters_bio(bp,x) ASN1_d2i_bio_of(EC_GROUP,NULL,d2i_ECPKParameters,bp,x)
|
# define d2i_ECPKParameters_bio(bp,x) \
|
||||||
# define i2d_ECPKParameters_bio(bp,x) ASN1_i2d_bio_of_const(EC_GROUP,i2d_ECPKParameters,bp,x)
|
ASN1_d2i_bio_of(EC_GROUP, NULL, d2i_ECPKParameters, bp, x)
|
||||||
# define d2i_ECPKParameters_fp(fp,x) (EC_GROUP *)ASN1_d2i_fp(NULL, \
|
# define i2d_ECPKParameters_bio(bp,x) \
|
||||||
(char *(*)())d2i_ECPKParameters,(fp),(unsigned char **)(x))
|
ASN1_i2d_bio_of_const(EC_GROUP, i2d_ECPKParameters, bp, x)
|
||||||
# define i2d_ECPKParameters_fp(fp,x) ASN1_i2d_fp(i2d_ECPKParameters,(fp), \
|
# define d2i_ECPKParameters_fp(fp,x) \
|
||||||
(unsigned char *)(x))
|
(EC_GROUP *)ASN1_d2i_fp(NULL, (d2i_of_void *)d2i_ECPKParameters, (fp), \
|
||||||
|
(void **)(x))
|
||||||
|
# define i2d_ECPKParameters_fp(fp,x) \
|
||||||
|
ASN1_i2d_fp((i2d_of_void *)i2d_ECPKParameters, (fp), (void *)(x))
|
||||||
|
|
||||||
int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off);
|
int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off);
|
||||||
# ifndef OPENSSL_NO_STDIO
|
# ifndef OPENSSL_NO_STDIO
|
||||||
|
|
@ -829,6 +832,8 @@ void EC_KEY_set_flags(EC_KEY *key, int flags);
|
||||||
|
|
||||||
void EC_KEY_clear_flags(EC_KEY *key, int flags);
|
void EC_KEY_clear_flags(EC_KEY *key, int flags);
|
||||||
|
|
||||||
|
int EC_KEY_decoded_from_explicit_params(const EC_KEY *key);
|
||||||
|
|
||||||
/** Creates a new EC_KEY object using a named curve as underlying
|
/** Creates a new EC_KEY object using a named curve as underlying
|
||||||
* EC_GROUP object.
|
* EC_GROUP object.
|
||||||
* \param nid NID of the named curve.
|
* \param nid NID of the named curve.
|
||||||
|
|
@ -1107,6 +1112,11 @@ const EC_KEY_METHOD *EC_KEY_get_method(const EC_KEY *key);
|
||||||
int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth);
|
int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth);
|
||||||
EC_KEY *EC_KEY_new_method(ENGINE *engine);
|
EC_KEY *EC_KEY_new_method(ENGINE *engine);
|
||||||
|
|
||||||
|
/** The old name for ecdh_KDF_X9_63
|
||||||
|
* The ECDH KDF specification has been mistakingly attributed to ANSI X9.62,
|
||||||
|
* it is actually specified in ANSI X9.63.
|
||||||
|
* This identifier is retained for backwards compatibility
|
||||||
|
*/
|
||||||
int ECDH_KDF_X9_62(unsigned char *out, size_t outlen,
|
int ECDH_KDF_X9_62(unsigned char *out, size_t outlen,
|
||||||
const unsigned char *Z, size_t Zlen,
|
const unsigned char *Z, size_t Zlen,
|
||||||
const unsigned char *sinfo, size_t sinfolen,
|
const unsigned char *sinfo, size_t sinfolen,
|
||||||
|
|
@ -1133,7 +1143,8 @@ void ECDSA_SIG_free(ECDSA_SIG *sig);
|
||||||
* (*pp += length of the DER encoded signature)).
|
* (*pp += length of the DER encoded signature)).
|
||||||
* \param sig pointer to the ECDSA_SIG object
|
* \param sig pointer to the ECDSA_SIG object
|
||||||
* \param pp pointer to a unsigned char pointer for the output or NULL
|
* \param pp pointer to a unsigned char pointer for the output or NULL
|
||||||
* \return the length of the DER encoded ECDSA_SIG object or 0
|
* \return the length of the DER encoded ECDSA_SIG object or a negative value
|
||||||
|
* on error
|
||||||
*/
|
*/
|
||||||
int i2d_ECDSA_SIG(const ECDSA_SIG *sig, unsigned char **pp);
|
int i2d_ECDSA_SIG(const ECDSA_SIG *sig, unsigned char **pp);
|
||||||
|
|
||||||
|
|
@ -1457,7 +1468,13 @@ void EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth,
|
||||||
# define EVP_PKEY_CTRL_GET1_ID_LEN (EVP_PKEY_ALG_CTRL + 13)
|
# define EVP_PKEY_CTRL_GET1_ID_LEN (EVP_PKEY_ALG_CTRL + 13)
|
||||||
/* KDF types */
|
/* KDF types */
|
||||||
# define EVP_PKEY_ECDH_KDF_NONE 1
|
# define EVP_PKEY_ECDH_KDF_NONE 1
|
||||||
# define EVP_PKEY_ECDH_KDF_X9_62 2
|
# define EVP_PKEY_ECDH_KDF_X9_63 2
|
||||||
|
/** The old name for EVP_PKEY_ECDH_KDF_X9_63
|
||||||
|
* The ECDH KDF specification has been mistakingly attributed to ANSI X9.62,
|
||||||
|
* it is actually specified in ANSI X9.63.
|
||||||
|
* This identifier is retained for backwards compatibility
|
||||||
|
*/
|
||||||
|
# define EVP_PKEY_ECDH_KDF_X9_62 EVP_PKEY_ECDH_KDF_X9_63
|
||||||
|
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_ECERR_H
|
#ifndef HEADER_ECERR_H
|
||||||
# define HEADER_ECERR_H
|
# define HEADER_ECERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# include <openssl/opensslconf.h>
|
# include <openssl/opensslconf.h>
|
||||||
|
|
||||||
# ifndef OPENSSL_NO_EC
|
# ifndef OPENSSL_NO_EC
|
||||||
|
|
@ -62,6 +66,7 @@ int ERR_load_EC_strings(void);
|
||||||
# define EC_F_EC_ASN1_GROUP2CURVE 153
|
# define EC_F_EC_ASN1_GROUP2CURVE 153
|
||||||
# define EC_F_EC_ASN1_GROUP2FIELDID 154
|
# define EC_F_EC_ASN1_GROUP2FIELDID 154
|
||||||
# define EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY 208
|
# define EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY 208
|
||||||
|
# define EC_F_EC_GF2M_SIMPLE_FIELD_INV 296
|
||||||
# define EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT 159
|
# define EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT 159
|
||||||
# define EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE 195
|
# define EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE 195
|
||||||
# define EC_F_EC_GF2M_SIMPLE_LADDER_POST 285
|
# define EC_F_EC_GF2M_SIMPLE_LADDER_POST 285
|
||||||
|
|
@ -74,6 +79,7 @@ int ERR_load_EC_strings(void);
|
||||||
# define EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES 164
|
# define EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES 164
|
||||||
# define EC_F_EC_GFP_MONT_FIELD_DECODE 133
|
# define EC_F_EC_GFP_MONT_FIELD_DECODE 133
|
||||||
# define EC_F_EC_GFP_MONT_FIELD_ENCODE 134
|
# define EC_F_EC_GFP_MONT_FIELD_ENCODE 134
|
||||||
|
# define EC_F_EC_GFP_MONT_FIELD_INV 297
|
||||||
# define EC_F_EC_GFP_MONT_FIELD_MUL 131
|
# define EC_F_EC_GFP_MONT_FIELD_MUL 131
|
||||||
# define EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE 209
|
# define EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE 209
|
||||||
# define EC_F_EC_GFP_MONT_FIELD_SQR 132
|
# define EC_F_EC_GFP_MONT_FIELD_SQR 132
|
||||||
|
|
@ -91,6 +97,7 @@ int ERR_load_EC_strings(void);
|
||||||
# define EC_F_EC_GFP_NIST_FIELD_SQR 201
|
# define EC_F_EC_GFP_NIST_FIELD_SQR 201
|
||||||
# define EC_F_EC_GFP_NIST_GROUP_SET_CURVE 202
|
# define EC_F_EC_GFP_NIST_GROUP_SET_CURVE 202
|
||||||
# define EC_F_EC_GFP_SIMPLE_BLIND_COORDINATES 287
|
# define EC_F_EC_GFP_SIMPLE_BLIND_COORDINATES 287
|
||||||
|
# define EC_F_EC_GFP_SIMPLE_FIELD_INV 298
|
||||||
# define EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT 165
|
# define EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT 165
|
||||||
# define EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE 166
|
# define EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE 166
|
||||||
# define EC_F_EC_GFP_SIMPLE_MAKE_AFFINE 102
|
# define EC_F_EC_GFP_SIMPLE_MAKE_AFFINE 102
|
||||||
|
|
@ -202,6 +209,7 @@ int ERR_load_EC_strings(void);
|
||||||
# define EC_R_BAD_SIGNATURE 156
|
# define EC_R_BAD_SIGNATURE 156
|
||||||
# define EC_R_BIGNUM_OUT_OF_RANGE 144
|
# define EC_R_BIGNUM_OUT_OF_RANGE 144
|
||||||
# define EC_R_BUFFER_TOO_SMALL 100
|
# define EC_R_BUFFER_TOO_SMALL 100
|
||||||
|
# define EC_R_CANNOT_INVERT 165
|
||||||
# define EC_R_COORDINATES_OUT_OF_RANGE 146
|
# define EC_R_COORDINATES_OUT_OF_RANGE 146
|
||||||
# define EC_R_CURVE_DOES_NOT_SUPPORT_ECDH 160
|
# define EC_R_CURVE_DOES_NOT_SUPPORT_ECDH 160
|
||||||
# define EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING 159
|
# define EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING 159
|
||||||
|
|
@ -235,6 +243,7 @@ int ERR_load_EC_strings(void);
|
||||||
# define EC_R_LADDER_POST_FAILURE 136
|
# define EC_R_LADDER_POST_FAILURE 136
|
||||||
# define EC_R_LADDER_PRE_FAILURE 153
|
# define EC_R_LADDER_PRE_FAILURE 153
|
||||||
# define EC_R_LADDER_STEP_FAILURE 162
|
# define EC_R_LADDER_STEP_FAILURE 162
|
||||||
|
# define EC_R_MISSING_OID 167
|
||||||
# define EC_R_MISSING_PARAMETERS 124
|
# define EC_R_MISSING_PARAMETERS 124
|
||||||
# define EC_R_MISSING_PRIVATE_KEY 125
|
# define EC_R_MISSING_PRIVATE_KEY 125
|
||||||
# define EC_R_NEED_NEW_SETUP_VALUES 157
|
# define EC_R_NEED_NEW_SETUP_VALUES 157
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
|
|
@ -722,6 +722,7 @@ typedef int (*dynamic_bind_engine) (ENGINE *e, const char *id,
|
||||||
CRYPTO_set_mem_functions(fns->mem_fns.malloc_fn, \
|
CRYPTO_set_mem_functions(fns->mem_fns.malloc_fn, \
|
||||||
fns->mem_fns.realloc_fn, \
|
fns->mem_fns.realloc_fn, \
|
||||||
fns->mem_fns.free_fn); \
|
fns->mem_fns.free_fn); \
|
||||||
|
OPENSSL_init_crypto(OPENSSL_INIT_NO_ATEXIT, NULL); \
|
||||||
skip_cbs: \
|
skip_cbs: \
|
||||||
if (!fn(e, id)) return 0; \
|
if (!fn(e, id)) return 0; \
|
||||||
return 1; }
|
return 1; }
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_ENGINEERR_H
|
#ifndef HEADER_ENGINEERR_H
|
||||||
# define HEADER_ENGINEERR_H
|
# define HEADER_ENGINEERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# include <openssl/opensslconf.h>
|
# include <openssl/opensslconf.h>
|
||||||
|
|
||||||
# ifndef OPENSSL_NO_ENGINE
|
# ifndef OPENSSL_NO_ENGINE
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -37,6 +37,7 @@ extern "C" {
|
||||||
# define ERR_TXT_STRING 0x02
|
# define ERR_TXT_STRING 0x02
|
||||||
|
|
||||||
# define ERR_FLAG_MARK 0x01
|
# define ERR_FLAG_MARK 0x01
|
||||||
|
# define ERR_FLAG_CLEAR 0x02
|
||||||
|
|
||||||
# define ERR_NUM_ERRORS 16
|
# define ERR_NUM_ERRORS 16
|
||||||
typedef struct err_state_st {
|
typedef struct err_state_st {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -180,7 +180,7 @@ int (*EVP_MD_meth_get_ctrl(const EVP_MD *md))(EVP_MD_CTX *ctx, int cmd,
|
||||||
* if the following flag is set.
|
* if the following flag is set.
|
||||||
*/
|
*/
|
||||||
# define EVP_MD_CTX_FLAG_FINALISE 0x0200
|
# define EVP_MD_CTX_FLAG_FINALISE 0x0200
|
||||||
/* NOTE: 0x0400 is reserved for internal usage in evp_int.h */
|
/* NOTE: 0x0400 is reserved for internal usage */
|
||||||
|
|
||||||
EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);
|
EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);
|
||||||
EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher);
|
EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher);
|
||||||
|
|
@ -260,6 +260,8 @@ int (*EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
|
||||||
# define EVP_CIPH_RAND_KEY 0x200
|
# define EVP_CIPH_RAND_KEY 0x200
|
||||||
/* cipher has its own additional copying logic */
|
/* cipher has its own additional copying logic */
|
||||||
# define EVP_CIPH_CUSTOM_COPY 0x400
|
# define EVP_CIPH_CUSTOM_COPY 0x400
|
||||||
|
/* Don't use standard iv length function */
|
||||||
|
# define EVP_CIPH_CUSTOM_IV_LENGTH 0x800
|
||||||
/* Allow use default ASN1 get/set iv */
|
/* Allow use default ASN1 get/set iv */
|
||||||
# define EVP_CIPH_FLAG_DEFAULT_ASN1 0x1000
|
# define EVP_CIPH_FLAG_DEFAULT_ASN1 0x1000
|
||||||
/* Buffer length in bits not bytes: CFB1 mode only */
|
/* Buffer length in bits not bytes: CFB1 mode only */
|
||||||
|
|
@ -349,6 +351,8 @@ int (*EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
|
||||||
/* Set the input buffer lengths to use for a pipelined operation */
|
/* Set the input buffer lengths to use for a pipelined operation */
|
||||||
# define EVP_CTRL_SET_PIPELINE_INPUT_LENS 0x24
|
# define EVP_CTRL_SET_PIPELINE_INPUT_LENS 0x24
|
||||||
|
|
||||||
|
# define EVP_CTRL_GET_IVLEN 0x25
|
||||||
|
|
||||||
/* Padding modes */
|
/* Padding modes */
|
||||||
#define EVP_PADDING_PKCS7 1
|
#define EVP_PADDING_PKCS7 1
|
||||||
#define EVP_PADDING_ISO7816_4 2
|
#define EVP_PADDING_ISO7816_4 2
|
||||||
|
|
@ -945,14 +949,9 @@ const EVP_CIPHER *EVP_sm4_ctr(void);
|
||||||
| OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)
|
| OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)
|
||||||
|
|
||||||
# ifdef OPENSSL_LOAD_CONF
|
# ifdef OPENSSL_LOAD_CONF
|
||||||
# define OpenSSL_add_all_algorithms() \
|
# define OpenSSL_add_all_algorithms() OPENSSL_add_all_algorithms_conf()
|
||||||
OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
|
|
||||||
| OPENSSL_INIT_ADD_ALL_DIGESTS \
|
|
||||||
| OPENSSL_INIT_LOAD_CONFIG, NULL)
|
|
||||||
# else
|
# else
|
||||||
# define OpenSSL_add_all_algorithms() \
|
# define OpenSSL_add_all_algorithms() OPENSSL_add_all_algorithms_noconf()
|
||||||
OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
|
|
||||||
| OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# define OpenSSL_add_all_ciphers() \
|
# define OpenSSL_add_all_ciphers() \
|
||||||
|
|
@ -994,12 +993,13 @@ int EVP_PKEY_id(const EVP_PKEY *pkey);
|
||||||
int EVP_PKEY_base_id(const EVP_PKEY *pkey);
|
int EVP_PKEY_base_id(const EVP_PKEY *pkey);
|
||||||
int EVP_PKEY_bits(const EVP_PKEY *pkey);
|
int EVP_PKEY_bits(const EVP_PKEY *pkey);
|
||||||
int EVP_PKEY_security_bits(const EVP_PKEY *pkey);
|
int EVP_PKEY_security_bits(const EVP_PKEY *pkey);
|
||||||
int EVP_PKEY_size(EVP_PKEY *pkey);
|
int EVP_PKEY_size(const EVP_PKEY *pkey);
|
||||||
int EVP_PKEY_set_type(EVP_PKEY *pkey, int type);
|
int EVP_PKEY_set_type(EVP_PKEY *pkey, int type);
|
||||||
int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);
|
int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);
|
||||||
int EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type);
|
int EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type);
|
||||||
# ifndef OPENSSL_NO_ENGINE
|
# ifndef OPENSSL_NO_ENGINE
|
||||||
int EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e);
|
int EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e);
|
||||||
|
ENGINE *EVP_PKEY_get0_engine(const EVP_PKEY *pkey);
|
||||||
# endif
|
# endif
|
||||||
int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);
|
int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);
|
||||||
void *EVP_PKEY_get0(const EVP_PKEY *pkey);
|
void *EVP_PKEY_get0(const EVP_PKEY *pkey);
|
||||||
|
|
@ -1512,6 +1512,20 @@ void EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth,
|
||||||
const char *type,
|
const char *type,
|
||||||
const char *value));
|
const char *value));
|
||||||
|
|
||||||
|
void EVP_PKEY_meth_set_digestsign(EVP_PKEY_METHOD *pmeth,
|
||||||
|
int (*digestsign) (EVP_MD_CTX *ctx,
|
||||||
|
unsigned char *sig,
|
||||||
|
size_t *siglen,
|
||||||
|
const unsigned char *tbs,
|
||||||
|
size_t tbslen));
|
||||||
|
|
||||||
|
void EVP_PKEY_meth_set_digestverify(EVP_PKEY_METHOD *pmeth,
|
||||||
|
int (*digestverify) (EVP_MD_CTX *ctx,
|
||||||
|
const unsigned char *sig,
|
||||||
|
size_t siglen,
|
||||||
|
const unsigned char *tbs,
|
||||||
|
size_t tbslen));
|
||||||
|
|
||||||
void EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth,
|
void EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth,
|
||||||
int (*check) (EVP_PKEY *pkey));
|
int (*check) (EVP_PKEY *pkey));
|
||||||
|
|
||||||
|
|
@ -1617,6 +1631,20 @@ void EVP_PKEY_meth_get_ctrl(const EVP_PKEY_METHOD *pmeth,
|
||||||
const char *type,
|
const char *type,
|
||||||
const char *value));
|
const char *value));
|
||||||
|
|
||||||
|
void EVP_PKEY_meth_get_digestsign(EVP_PKEY_METHOD *pmeth,
|
||||||
|
int (**digestsign) (EVP_MD_CTX *ctx,
|
||||||
|
unsigned char *sig,
|
||||||
|
size_t *siglen,
|
||||||
|
const unsigned char *tbs,
|
||||||
|
size_t tbslen));
|
||||||
|
|
||||||
|
void EVP_PKEY_meth_get_digestverify(EVP_PKEY_METHOD *pmeth,
|
||||||
|
int (**digestverify) (EVP_MD_CTX *ctx,
|
||||||
|
const unsigned char *sig,
|
||||||
|
size_t siglen,
|
||||||
|
const unsigned char *tbs,
|
||||||
|
size_t tbslen));
|
||||||
|
|
||||||
void EVP_PKEY_meth_get_check(const EVP_PKEY_METHOD *pmeth,
|
void EVP_PKEY_meth_get_check(const EVP_PKEY_METHOD *pmeth,
|
||||||
int (**pcheck) (EVP_PKEY *pkey));
|
int (**pcheck) (EVP_PKEY *pkey));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,8 @@
|
||||||
#ifndef HEADER_EVPERR_H
|
#ifndef HEADER_EVPERR_H
|
||||||
# define HEADER_EVPERR_H
|
# define HEADER_EVPERR_H
|
||||||
|
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
@ -20,11 +22,14 @@ int ERR_load_EVP_strings(void);
|
||||||
* EVP function codes.
|
* EVP function codes.
|
||||||
*/
|
*/
|
||||||
# define EVP_F_AESNI_INIT_KEY 165
|
# define EVP_F_AESNI_INIT_KEY 165
|
||||||
|
# define EVP_F_AESNI_XTS_INIT_KEY 207
|
||||||
# define EVP_F_AES_GCM_CTRL 196
|
# define EVP_F_AES_GCM_CTRL 196
|
||||||
# define EVP_F_AES_INIT_KEY 133
|
# define EVP_F_AES_INIT_KEY 133
|
||||||
# define EVP_F_AES_OCB_CIPHER 169
|
# define EVP_F_AES_OCB_CIPHER 169
|
||||||
# define EVP_F_AES_T4_INIT_KEY 178
|
# define EVP_F_AES_T4_INIT_KEY 178
|
||||||
|
# define EVP_F_AES_T4_XTS_INIT_KEY 208
|
||||||
# define EVP_F_AES_WRAP_CIPHER 170
|
# define EVP_F_AES_WRAP_CIPHER 170
|
||||||
|
# define EVP_F_AES_XTS_INIT_KEY 209
|
||||||
# define EVP_F_ALG_MODULE_INIT 177
|
# define EVP_F_ALG_MODULE_INIT 177
|
||||||
# define EVP_F_ARIA_CCM_INIT_KEY 175
|
# define EVP_F_ARIA_CCM_INIT_KEY 175
|
||||||
# define EVP_F_ARIA_GCM_CTRL 197
|
# define EVP_F_ARIA_GCM_CTRL 197
|
||||||
|
|
@ -47,6 +52,7 @@ int ERR_load_EVP_strings(void);
|
||||||
# define EVP_F_EVP_DECRYPTUPDATE 166
|
# define EVP_F_EVP_DECRYPTUPDATE 166
|
||||||
# define EVP_F_EVP_DIGESTFINALXOF 174
|
# define EVP_F_EVP_DIGESTFINALXOF 174
|
||||||
# define EVP_F_EVP_DIGESTINIT_EX 128
|
# define EVP_F_EVP_DIGESTINIT_EX 128
|
||||||
|
# define EVP_F_EVP_ENCRYPTDECRYPTUPDATE 219
|
||||||
# define EVP_F_EVP_ENCRYPTFINAL_EX 127
|
# define EVP_F_EVP_ENCRYPTFINAL_EX 127
|
||||||
# define EVP_F_EVP_ENCRYPTUPDATE 167
|
# define EVP_F_EVP_ENCRYPTUPDATE 167
|
||||||
# define EVP_F_EVP_MD_CTX_COPY_EX 110
|
# define EVP_F_EVP_MD_CTX_COPY_EX 110
|
||||||
|
|
@ -114,6 +120,7 @@ int ERR_load_EVP_strings(void);
|
||||||
# define EVP_F_PKEY_SET_TYPE 158
|
# define EVP_F_PKEY_SET_TYPE 158
|
||||||
# define EVP_F_RC2_MAGIC_TO_METH 109
|
# define EVP_F_RC2_MAGIC_TO_METH 109
|
||||||
# define EVP_F_RC5_CTRL 125
|
# define EVP_F_RC5_CTRL 125
|
||||||
|
# define EVP_F_R_32_12_16_INIT_KEY 242
|
||||||
# define EVP_F_S390X_AES_GCM_CTRL 201
|
# define EVP_F_S390X_AES_GCM_CTRL 201
|
||||||
# define EVP_F_UPDATE 173
|
# define EVP_F_UPDATE 173
|
||||||
|
|
||||||
|
|
@ -123,6 +130,7 @@ int ERR_load_EVP_strings(void);
|
||||||
# define EVP_R_AES_KEY_SETUP_FAILED 143
|
# define EVP_R_AES_KEY_SETUP_FAILED 143
|
||||||
# define EVP_R_ARIA_KEY_SETUP_FAILED 176
|
# define EVP_R_ARIA_KEY_SETUP_FAILED 176
|
||||||
# define EVP_R_BAD_DECRYPT 100
|
# define EVP_R_BAD_DECRYPT 100
|
||||||
|
# define EVP_R_BAD_KEY_LENGTH 195
|
||||||
# define EVP_R_BUFFER_TOO_SMALL 155
|
# define EVP_R_BUFFER_TOO_SMALL 155
|
||||||
# define EVP_R_CAMELLIA_KEY_SETUP_FAILED 157
|
# define EVP_R_CAMELLIA_KEY_SETUP_FAILED 157
|
||||||
# define EVP_R_CIPHER_PARAMETER_ERROR 122
|
# define EVP_R_CIPHER_PARAMETER_ERROR 122
|
||||||
|
|
@ -150,6 +158,7 @@ int ERR_load_EVP_strings(void);
|
||||||
# define EVP_R_INPUT_NOT_INITIALIZED 111
|
# define EVP_R_INPUT_NOT_INITIALIZED 111
|
||||||
# define EVP_R_INVALID_DIGEST 152
|
# define EVP_R_INVALID_DIGEST 152
|
||||||
# define EVP_R_INVALID_FIPS_MODE 168
|
# define EVP_R_INVALID_FIPS_MODE 168
|
||||||
|
# define EVP_R_INVALID_IV_LENGTH 194
|
||||||
# define EVP_R_INVALID_KEY 163
|
# define EVP_R_INVALID_KEY 163
|
||||||
# define EVP_R_INVALID_KEY_LENGTH 130
|
# define EVP_R_INVALID_KEY_LENGTH 130
|
||||||
# define EVP_R_INVALID_OPERATION 148
|
# define EVP_R_INVALID_OPERATION 148
|
||||||
|
|
@ -168,6 +177,7 @@ int ERR_load_EVP_strings(void);
|
||||||
# define EVP_R_ONLY_ONESHOT_SUPPORTED 177
|
# define EVP_R_ONLY_ONESHOT_SUPPORTED 177
|
||||||
# define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 150
|
# define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 150
|
||||||
# define EVP_R_OPERATON_NOT_INITIALIZED 151
|
# define EVP_R_OPERATON_NOT_INITIALIZED 151
|
||||||
|
# define EVP_R_OUTPUT_WOULD_OVERFLOW 184
|
||||||
# define EVP_R_PARTIALLY_OVERLAPPING 162
|
# define EVP_R_PARTIALLY_OVERLAPPING 162
|
||||||
# define EVP_R_PBKDF2_ERROR 181
|
# define EVP_R_PBKDF2_ERROR 181
|
||||||
# define EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED 179
|
# define EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED 179
|
||||||
|
|
@ -189,5 +199,6 @@ int ERR_load_EVP_strings(void);
|
||||||
# define EVP_R_UNSUPPORTED_SALT_TYPE 126
|
# define EVP_R_UNSUPPORTED_SALT_TYPE 126
|
||||||
# define EVP_R_WRAP_MODE_NOT_ALLOWED 170
|
# define EVP_R_WRAP_MODE_NOT_ALLOWED 170
|
||||||
# define EVP_R_WRONG_FINAL_BLOCK_LENGTH 109
|
# define EVP_R_WRONG_FINAL_BLOCK_LENGTH 109
|
||||||
|
# define EVP_R_XTS_DUPLICATED_KEYS 183
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_KDFERR_H
|
#ifndef HEADER_KDFERR_H
|
||||||
# define HEADER_KDFERR_H
|
# define HEADER_KDFERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -120,59 +120,58 @@ void OPENSSL_LH_node_usage_stats_bio(const OPENSSL_LHASH *lh, BIO *out);
|
||||||
|
|
||||||
# define DEFINE_LHASH_OF(type) \
|
# define DEFINE_LHASH_OF(type) \
|
||||||
LHASH_OF(type) { union lh_##type##_dummy { void* d1; unsigned long d2; int d3; } dummy; }; \
|
LHASH_OF(type) { union lh_##type##_dummy { void* d1; unsigned long d2; int d3; } dummy; }; \
|
||||||
static ossl_inline LHASH_OF(type) * \
|
static ossl_unused ossl_inline LHASH_OF(type) *lh_##type##_new(unsigned long (*hfn)(const type *), \
|
||||||
lh_##type##_new(unsigned long (*hfn)(const type *), \
|
int (*cfn)(const type *, const type *)) \
|
||||||
int (*cfn)(const type *, const type *)) \
|
|
||||||
{ \
|
{ \
|
||||||
return (LHASH_OF(type) *) \
|
return (LHASH_OF(type) *) \
|
||||||
OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn); \
|
OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline void lh_##type##_free(LHASH_OF(type) *lh) \
|
static ossl_unused ossl_inline void lh_##type##_free(LHASH_OF(type) *lh) \
|
||||||
{ \
|
{ \
|
||||||
OPENSSL_LH_free((OPENSSL_LHASH *)lh); \
|
OPENSSL_LH_free((OPENSSL_LHASH *)lh); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline type *lh_##type##_insert(LHASH_OF(type) *lh, type *d) \
|
static ossl_unused ossl_inline type *lh_##type##_insert(LHASH_OF(type) *lh, type *d) \
|
||||||
{ \
|
{ \
|
||||||
return (type *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d); \
|
return (type *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline type *lh_##type##_delete(LHASH_OF(type) *lh, const type *d) \
|
static ossl_unused ossl_inline type *lh_##type##_delete(LHASH_OF(type) *lh, const type *d) \
|
||||||
{ \
|
{ \
|
||||||
return (type *)OPENSSL_LH_delete((OPENSSL_LHASH *)lh, d); \
|
return (type *)OPENSSL_LH_delete((OPENSSL_LHASH *)lh, d); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline type *lh_##type##_retrieve(LHASH_OF(type) *lh, const type *d) \
|
static ossl_unused ossl_inline type *lh_##type##_retrieve(LHASH_OF(type) *lh, const type *d) \
|
||||||
{ \
|
{ \
|
||||||
return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d); \
|
return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline int lh_##type##_error(LHASH_OF(type) *lh) \
|
static ossl_unused ossl_inline int lh_##type##_error(LHASH_OF(type) *lh) \
|
||||||
{ \
|
{ \
|
||||||
return OPENSSL_LH_error((OPENSSL_LHASH *)lh); \
|
return OPENSSL_LH_error((OPENSSL_LHASH *)lh); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline unsigned long lh_##type##_num_items(LHASH_OF(type) *lh) \
|
static ossl_unused ossl_inline unsigned long lh_##type##_num_items(LHASH_OF(type) *lh) \
|
||||||
{ \
|
{ \
|
||||||
return OPENSSL_LH_num_items((OPENSSL_LHASH *)lh); \
|
return OPENSSL_LH_num_items((OPENSSL_LHASH *)lh); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline void lh_##type##_node_stats_bio(const LHASH_OF(type) *lh, BIO *out) \
|
static ossl_unused ossl_inline void lh_##type##_node_stats_bio(const LHASH_OF(type) *lh, BIO *out) \
|
||||||
{ \
|
{ \
|
||||||
OPENSSL_LH_node_stats_bio((const OPENSSL_LHASH *)lh, out); \
|
OPENSSL_LH_node_stats_bio((const OPENSSL_LHASH *)lh, out); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline void lh_##type##_node_usage_stats_bio(const LHASH_OF(type) *lh, BIO *out) \
|
static ossl_unused ossl_inline void lh_##type##_node_usage_stats_bio(const LHASH_OF(type) *lh, BIO *out) \
|
||||||
{ \
|
{ \
|
||||||
OPENSSL_LH_node_usage_stats_bio((const OPENSSL_LHASH *)lh, out); \
|
OPENSSL_LH_node_usage_stats_bio((const OPENSSL_LHASH *)lh, out); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline void lh_##type##_stats_bio(const LHASH_OF(type) *lh, BIO *out) \
|
static ossl_unused ossl_inline void lh_##type##_stats_bio(const LHASH_OF(type) *lh, BIO *out) \
|
||||||
{ \
|
{ \
|
||||||
OPENSSL_LH_stats_bio((const OPENSSL_LHASH *)lh, out); \
|
OPENSSL_LH_stats_bio((const OPENSSL_LHASH *)lh, out); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline unsigned long lh_##type##_get_down_load(LHASH_OF(type) *lh) \
|
static ossl_unused ossl_inline unsigned long lh_##type##_get_down_load(LHASH_OF(type) *lh) \
|
||||||
{ \
|
{ \
|
||||||
return OPENSSL_LH_get_down_load((OPENSSL_LHASH *)lh); \
|
return OPENSSL_LH_get_down_load((OPENSSL_LHASH *)lh); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline void lh_##type##_set_down_load(LHASH_OF(type) *lh, unsigned long dl) \
|
static ossl_unused ossl_inline void lh_##type##_set_down_load(LHASH_OF(type) *lh, unsigned long dl) \
|
||||||
{ \
|
{ \
|
||||||
OPENSSL_LH_set_down_load((OPENSSL_LHASH *)lh, dl); \
|
OPENSSL_LH_set_down_load((OPENSSL_LHASH *)lh, dl); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline void lh_##type##_doall(LHASH_OF(type) *lh, \
|
static ossl_unused ossl_inline void lh_##type##_doall(LHASH_OF(type) *lh, \
|
||||||
void (*doall)(type *)) \
|
void (*doall)(type *)) \
|
||||||
{ \
|
{ \
|
||||||
OPENSSL_LH_doall((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNC)doall); \
|
OPENSSL_LH_doall((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNC)doall); \
|
||||||
} \
|
} \
|
||||||
|
|
@ -185,7 +184,7 @@ void OPENSSL_LH_node_usage_stats_bio(const OPENSSL_LHASH *lh, BIO *out);
|
||||||
int_implement_lhash_doall(type, argtype, type)
|
int_implement_lhash_doall(type, argtype, type)
|
||||||
|
|
||||||
#define int_implement_lhash_doall(type, argtype, cbargtype) \
|
#define int_implement_lhash_doall(type, argtype, cbargtype) \
|
||||||
static ossl_inline void \
|
static ossl_unused ossl_inline void \
|
||||||
lh_##type##_doall_##argtype(LHASH_OF(type) *lh, \
|
lh_##type##_doall_##argtype(LHASH_OF(type) *lh, \
|
||||||
void (*fn)(cbargtype *, argtype *), \
|
void (*fn)(cbargtype *, argtype *), \
|
||||||
argtype *arg) \
|
argtype *arg) \
|
||||||
|
|
@ -210,6 +209,31 @@ DEFINE_LHASH_OF(OPENSSL_CSTRING);
|
||||||
# pragma warning (pop)
|
# pragma warning (pop)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If called without higher optimization (min. -xO3) the Oracle Developer
|
||||||
|
* Studio compiler generates code for the defined (static inline) functions
|
||||||
|
* above.
|
||||||
|
* This would later lead to the linker complaining about missing symbols when
|
||||||
|
* this header file is included but the resulting object is not linked against
|
||||||
|
* the Crypto library (openssl#6912).
|
||||||
|
*/
|
||||||
|
# ifdef __SUNPRO_C
|
||||||
|
# pragma weak OPENSSL_LH_new
|
||||||
|
# pragma weak OPENSSL_LH_free
|
||||||
|
# pragma weak OPENSSL_LH_insert
|
||||||
|
# pragma weak OPENSSL_LH_delete
|
||||||
|
# pragma weak OPENSSL_LH_retrieve
|
||||||
|
# pragma weak OPENSSL_LH_error
|
||||||
|
# pragma weak OPENSSL_LH_num_items
|
||||||
|
# pragma weak OPENSSL_LH_node_stats_bio
|
||||||
|
# pragma weak OPENSSL_LH_node_usage_stats_bio
|
||||||
|
# pragma weak OPENSSL_LH_stats_bio
|
||||||
|
# pragma weak OPENSSL_LH_get_down_load
|
||||||
|
# pragma weak OPENSSL_LH_set_down_load
|
||||||
|
# pragma weak OPENSSL_LH_doall
|
||||||
|
# pragma weak OPENSSL_LH_doall_arg
|
||||||
|
# endif /* __SUNPRO_C */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* WARNING: do not edit!
|
* WARNING: do not edit!
|
||||||
* Generated by crypto/objects/objects.pl
|
* Generated by crypto/objects/objects.pl
|
||||||
*
|
*
|
||||||
* Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
* in the file LICENSE in the source distribution or at
|
* in the file LICENSE in the source distribution or at
|
||||||
|
|
@ -1290,12 +1290,12 @@
|
||||||
#define OBJ_ms_efs 1L,3L,6L,1L,4L,1L,311L,10L,3L,4L
|
#define OBJ_ms_efs 1L,3L,6L,1L,4L,1L,311L,10L,3L,4L
|
||||||
|
|
||||||
#define SN_ms_smartcard_login "msSmartcardLogin"
|
#define SN_ms_smartcard_login "msSmartcardLogin"
|
||||||
#define LN_ms_smartcard_login "Microsoft Smartcardlogin"
|
#define LN_ms_smartcard_login "Microsoft Smartcard Login"
|
||||||
#define NID_ms_smartcard_login 648
|
#define NID_ms_smartcard_login 648
|
||||||
#define OBJ_ms_smartcard_login 1L,3L,6L,1L,4L,1L,311L,20L,2L,2L
|
#define OBJ_ms_smartcard_login 1L,3L,6L,1L,4L,1L,311L,20L,2L,2L
|
||||||
|
|
||||||
#define SN_ms_upn "msUPN"
|
#define SN_ms_upn "msUPN"
|
||||||
#define LN_ms_upn "Microsoft Universal Principal Name"
|
#define LN_ms_upn "Microsoft User Principal Name"
|
||||||
#define NID_ms_upn 649
|
#define NID_ms_upn 649
|
||||||
#define OBJ_ms_upn 1L,3L,6L,1L,4L,1L,311L,20L,2L,3L
|
#define OBJ_ms_upn 1L,3L,6L,1L,4L,1L,311L,20L,2L,3L
|
||||||
|
|
||||||
|
|
@ -4280,7 +4280,7 @@
|
||||||
|
|
||||||
#define SN_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 "id-tc26-wrap-gostr3412-2015-kuznyechik-kexp15"
|
#define SN_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 "id-tc26-wrap-gostr3412-2015-kuznyechik-kexp15"
|
||||||
#define NID_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 1183
|
#define NID_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 1183
|
||||||
#define OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 OBJ_id_tc26_wrap_gostr3412_2015_magma,1L
|
#define OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik,1L
|
||||||
|
|
||||||
#define SN_id_tc26_constants "id-tc26-constants"
|
#define SN_id_tc26_constants "id-tc26-constants"
|
||||||
#define NID_id_tc26_constants 994
|
#define NID_id_tc26_constants 994
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_OBJERR_H
|
#ifndef HEADER_OBJERR_H
|
||||||
# define HEADER_OBJERR_H
|
# define HEADER_OBJERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -93,7 +93,6 @@ typedef struct ocsp_resp_bytes_st OCSP_RESPBYTES;
|
||||||
# define V_OCSP_RESPID_KEY 1
|
# define V_OCSP_RESPID_KEY 1
|
||||||
|
|
||||||
DEFINE_STACK_OF(OCSP_RESPID)
|
DEFINE_STACK_OF(OCSP_RESPID)
|
||||||
DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
|
|
||||||
|
|
||||||
typedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO;
|
typedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO;
|
||||||
|
|
||||||
|
|
@ -124,7 +123,7 @@ typedef struct ocsp_service_locator_st OCSP_SERVICELOC;
|
||||||
(char *(*)())d2i_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST, \
|
(char *(*)())d2i_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST, \
|
||||||
bp,(char **)(x),cb,NULL)
|
bp,(char **)(x),cb,NULL)
|
||||||
|
|
||||||
# define PEM_read_bio_OCSP_RESPONSE(bp,x,cb)(OCSP_RESPONSE *)PEM_ASN1_read_bio(\
|
# define PEM_read_bio_OCSP_RESPONSE(bp,x,cb) (OCSP_RESPONSE *)PEM_ASN1_read_bio(\
|
||||||
(char *(*)())d2i_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE, \
|
(char *(*)())d2i_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE, \
|
||||||
bp,(char **)(x),cb,NULL)
|
bp,(char **)(x),cb,NULL)
|
||||||
|
|
||||||
|
|
@ -162,8 +161,6 @@ int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,
|
||||||
int OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, ASN1_VALUE **pval,
|
int OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, ASN1_VALUE **pval,
|
||||||
const ASN1_ITEM *it);
|
const ASN1_ITEM *it);
|
||||||
BIO *OCSP_REQ_CTX_get0_mem_bio(OCSP_REQ_CTX *rctx);
|
BIO *OCSP_REQ_CTX_get0_mem_bio(OCSP_REQ_CTX *rctx);
|
||||||
int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,
|
|
||||||
ASN1_VALUE *val);
|
|
||||||
int OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx, const char *op, const char *path);
|
int OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx, const char *op, const char *path);
|
||||||
int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req);
|
int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req);
|
||||||
int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx,
|
int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx,
|
||||||
|
|
@ -232,8 +229,8 @@ int OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs,
|
||||||
int OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath,
|
int OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath,
|
||||||
int *pssl);
|
int *pssl);
|
||||||
|
|
||||||
int OCSP_id_issuer_cmp(OCSP_CERTID *a, OCSP_CERTID *b);
|
int OCSP_id_issuer_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);
|
||||||
int OCSP_id_cmp(OCSP_CERTID *a, OCSP_CERTID *b);
|
int OCSP_id_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);
|
||||||
|
|
||||||
int OCSP_request_onereq_count(OCSP_REQUEST *req);
|
int OCSP_request_onereq_count(OCSP_REQUEST *req);
|
||||||
OCSP_ONEREQ *OCSP_request_onereq_get0(OCSP_REQUEST *req, int i);
|
OCSP_ONEREQ *OCSP_request_onereq_get0(OCSP_REQUEST *req, int i);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_OCSPERR_H
|
#ifndef HEADER_OCSPERR_H
|
||||||
# define HEADER_OCSPERR_H
|
# define HEADER_OCSPERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# include <openssl/opensslconf.h>
|
# include <openssl/opensslconf.h>
|
||||||
|
|
||||||
# ifndef OPENSSL_NO_OCSP
|
# ifndef OPENSSL_NO_OCSP
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* WARNING: do not edit!
|
* WARNING: do not edit!
|
||||||
* Generated by Makefile from include/openssl/opensslconf.h.in
|
* Generated by Makefile from include/openssl/opensslconf.h.in
|
||||||
*
|
*
|
||||||
* Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -36,6 +36,9 @@ extern "C" {
|
||||||
#ifndef OPENSSL_RAND_SEED_OS
|
#ifndef OPENSSL_RAND_SEED_OS
|
||||||
# define OPENSSL_RAND_SEED_OS
|
# define OPENSSL_RAND_SEED_OS
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef OPENSSL_NO_AFALGENG
|
||||||
|
# define OPENSSL_NO_AFALGENG
|
||||||
|
#endif
|
||||||
#ifndef OPENSSL_NO_ASAN
|
#ifndef OPENSSL_NO_ASAN
|
||||||
# define OPENSSL_NO_ASAN
|
# define OPENSSL_NO_ASAN
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -114,6 +117,11 @@ extern "C" {
|
||||||
# undef DECLARE_DEPRECATED
|
# undef DECLARE_DEPRECATED
|
||||||
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
||||||
# endif
|
# endif
|
||||||
|
# elif defined(__SUNPRO_C)
|
||||||
|
# if (__SUNPRO_C >= 0x5130)
|
||||||
|
# undef DECLARE_DEPRECATED
|
||||||
|
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* {- join("\n * ", @autowarntext) -}
|
* {- join("\n * ", @autowarntext) -}
|
||||||
*
|
*
|
||||||
* Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -77,6 +77,11 @@ extern "C" {
|
||||||
# undef DECLARE_DEPRECATED
|
# undef DECLARE_DEPRECATED
|
||||||
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
||||||
# endif
|
# endif
|
||||||
|
# elif defined(__SUNPRO_C)
|
||||||
|
# if (__SUNPRO_C >= 0x5130)
|
||||||
|
# undef DECLARE_DEPRECATED
|
||||||
|
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1999-2022 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -39,8 +39,8 @@ extern "C" {
|
||||||
* (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for
|
* (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for
|
||||||
* major minor fix final patch/beta)
|
* major minor fix final patch/beta)
|
||||||
*/
|
*/
|
||||||
# define OPENSSL_VERSION_NUMBER 0x1010100fL
|
# define OPENSSL_VERSION_NUMBER 0x1010113fL
|
||||||
# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1 11 Sep 2018"
|
# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1s 1 Nov 2022"
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* The macros below are to be used for shared library (.so, .dll, ...)
|
* The macros below are to be used for shared library (.so, .dll, ...)
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,7 @@ typedef struct dsa_method DSA_METHOD;
|
||||||
|
|
||||||
typedef struct rsa_st RSA;
|
typedef struct rsa_st RSA;
|
||||||
typedef struct rsa_meth_st RSA_METHOD;
|
typedef struct rsa_meth_st RSA_METHOD;
|
||||||
|
typedef struct rsa_pss_params_st RSA_PSS_PARAMS;
|
||||||
|
|
||||||
typedef struct ec_key_st EC_KEY;
|
typedef struct ec_key_st EC_KEY;
|
||||||
typedef struct ec_key_method_st EC_KEY_METHOD;
|
typedef struct ec_key_method_st EC_KEY_METHOD;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_PEMERR_H
|
#ifndef HEADER_PEMERR_H
|
||||||
# define HEADER_PEMERR_H
|
# define HEADER_PEMERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
@ -57,6 +61,7 @@ int ERR_load_PEM_strings(void);
|
||||||
# define PEM_F_PEM_SIGNFINAL 112
|
# define PEM_F_PEM_SIGNFINAL 112
|
||||||
# define PEM_F_PEM_WRITE 113
|
# define PEM_F_PEM_WRITE 113
|
||||||
# define PEM_F_PEM_WRITE_BIO 114
|
# define PEM_F_PEM_WRITE_BIO 114
|
||||||
|
# define PEM_F_PEM_WRITE_BIO_PRIVATEKEY_TRADITIONAL 147
|
||||||
# define PEM_F_PEM_WRITE_PRIVATEKEY 139
|
# define PEM_F_PEM_WRITE_PRIVATEKEY 139
|
||||||
# define PEM_F_PEM_X509_INFO_READ 115
|
# define PEM_F_PEM_X509_INFO_READ 115
|
||||||
# define PEM_F_PEM_X509_INFO_READ_BIO 116
|
# define PEM_F_PEM_X509_INFO_READ_BIO 116
|
||||||
|
|
@ -95,5 +100,6 @@ int ERR_load_PEM_strings(void);
|
||||||
# define PEM_R_UNSUPPORTED_CIPHER 113
|
# define PEM_R_UNSUPPORTED_CIPHER 113
|
||||||
# define PEM_R_UNSUPPORTED_ENCRYPTION 114
|
# define PEM_R_UNSUPPORTED_ENCRYPTION 114
|
||||||
# define PEM_R_UNSUPPORTED_KEY_COMPONENTS 126
|
# define PEM_R_UNSUPPORTED_KEY_COMPONENTS 126
|
||||||
|
# define PEM_R_UNSUPPORTED_PUBLIC_KEY_TYPE 110
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_PKCS12ERR_H
|
#ifndef HEADER_PKCS12ERR_H
|
||||||
# define HEADER_PKCS12ERR_H
|
# define HEADER_PKCS12ERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_PKCS7ERR_H
|
#ifndef HEADER_PKCS7ERR_H
|
||||||
# define HEADER_PKCS7ERR_H
|
# define HEADER_PKCS7ERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -12,23 +12,31 @@
|
||||||
|
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
# include <openssl/ossl_typ.h>
|
# include <openssl/ossl_typ.h>
|
||||||
|
# include <openssl/obj_mac.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* RAND_DRBG flags
|
||||||
|
*
|
||||||
|
* Note: if new flags are added, the constant `rand_drbg_used_flags`
|
||||||
|
* in drbg_lib.c needs to be updated accordingly.
|
||||||
|
*/
|
||||||
|
|
||||||
/* In CTR mode, disable derivation function ctr_df */
|
/* In CTR mode, disable derivation function ctr_df */
|
||||||
# define RAND_DRBG_FLAG_CTR_NO_DF 0x1
|
# define RAND_DRBG_FLAG_CTR_NO_DF 0x1
|
||||||
|
|
||||||
/* A logical OR of all used flag bits (currently there is only one) */
|
|
||||||
# define RAND_DRBG_USED_FLAGS ( \
|
# if OPENSSL_API_COMPAT < 0x10200000L
|
||||||
RAND_DRBG_FLAG_CTR_NO_DF \
|
/* This #define was replaced by an internal constant and should not be used. */
|
||||||
)
|
# define RAND_DRBG_USED_FLAGS (RAND_DRBG_FLAG_CTR_NO_DF)
|
||||||
|
# endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Default security strength (in the sense of [NIST SP 800-90Ar1])
|
* Default security strength (in the sense of [NIST SP 800-90Ar1])
|
||||||
*
|
*
|
||||||
* NIST SP 800-90Ar1 supports the strength of the DRBG being smaller than that
|
* NIST SP 800-90Ar1 supports the strength of the DRBG being smaller than that
|
||||||
* of the cipher by collecting less entropy. The current DRBG implemantion does
|
* of the cipher by collecting less entropy. The current DRBG implementation
|
||||||
* not take RAND_DRBG_STRENGTH into account and sets the strength of the DRBG
|
* does not take RAND_DRBG_STRENGTH into account and sets the strength of the
|
||||||
* to that of the cipher.
|
* DRBG to that of the cipher.
|
||||||
*
|
*
|
||||||
* RAND_DRBG_STRENGTH is currently only used for the legacy RAND
|
* RAND_DRBG_STRENGTH is currently only used for the legacy RAND
|
||||||
* implementation.
|
* implementation.
|
||||||
|
|
@ -37,7 +45,9 @@
|
||||||
* NID_aes_256_ctr
|
* NID_aes_256_ctr
|
||||||
*/
|
*/
|
||||||
# define RAND_DRBG_STRENGTH 256
|
# define RAND_DRBG_STRENGTH 256
|
||||||
|
/* Default drbg type */
|
||||||
# define RAND_DRBG_TYPE NID_aes_256_ctr
|
# define RAND_DRBG_TYPE NID_aes_256_ctr
|
||||||
|
/* Default drbg flags */
|
||||||
# define RAND_DRBG_FLAGS 0
|
# define RAND_DRBG_FLAGS 0
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,8 @@
|
||||||
#ifndef HEADER_RANDERR_H
|
#ifndef HEADER_RANDERR_H
|
||||||
# define HEADER_RANDERR_H
|
# define HEADER_RANDERR_H
|
||||||
|
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
@ -19,6 +21,7 @@ int ERR_load_RAND_strings(void);
|
||||||
/*
|
/*
|
||||||
* RAND function codes.
|
* RAND function codes.
|
||||||
*/
|
*/
|
||||||
|
# define RAND_F_DATA_COLLECT_METHOD 127
|
||||||
# define RAND_F_DRBG_BYTES 101
|
# define RAND_F_DRBG_BYTES 101
|
||||||
# define RAND_F_DRBG_GET_ENTROPY 105
|
# define RAND_F_DRBG_GET_ENTROPY 105
|
||||||
# define RAND_F_DRBG_SETUP 117
|
# define RAND_F_DRBG_SETUP 117
|
||||||
|
|
@ -40,8 +43,11 @@ int ERR_load_RAND_strings(void);
|
||||||
# define RAND_F_RAND_POOL_ADD 103
|
# define RAND_F_RAND_POOL_ADD 103
|
||||||
# define RAND_F_RAND_POOL_ADD_BEGIN 113
|
# define RAND_F_RAND_POOL_ADD_BEGIN 113
|
||||||
# define RAND_F_RAND_POOL_ADD_END 114
|
# define RAND_F_RAND_POOL_ADD_END 114
|
||||||
|
# define RAND_F_RAND_POOL_ATTACH 124
|
||||||
# define RAND_F_RAND_POOL_BYTES_NEEDED 115
|
# define RAND_F_RAND_POOL_BYTES_NEEDED 115
|
||||||
|
# define RAND_F_RAND_POOL_GROW 125
|
||||||
# define RAND_F_RAND_POOL_NEW 116
|
# define RAND_F_RAND_POOL_NEW 116
|
||||||
|
# define RAND_F_RAND_PSEUDO_BYTES 126
|
||||||
# define RAND_F_RAND_WRITE_FILE 112
|
# define RAND_F_RAND_WRITE_FILE 112
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,7 @@ extern "C" {
|
||||||
|
|
||||||
# define EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx, md) \
|
# define EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx, md) \
|
||||||
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, \
|
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, \
|
||||||
EVP_PKEY_OP_TYPE_KEYGEN, EVP_PKEY_CTRL_MD, \
|
EVP_PKEY_OP_KEYGEN, EVP_PKEY_CTRL_MD, \
|
||||||
0, (void *)(md))
|
0, (void *)(md))
|
||||||
|
|
||||||
# define EVP_PKEY_CTRL_RSA_PADDING (EVP_PKEY_ALG_CTRL + 1)
|
# define EVP_PKEY_CTRL_RSA_PADDING (EVP_PKEY_ALG_CTRL + 1)
|
||||||
|
|
@ -224,6 +224,7 @@ const BIGNUM *RSA_get0_q(const RSA *d);
|
||||||
const BIGNUM *RSA_get0_dmp1(const RSA *r);
|
const BIGNUM *RSA_get0_dmp1(const RSA *r);
|
||||||
const BIGNUM *RSA_get0_dmq1(const RSA *r);
|
const BIGNUM *RSA_get0_dmq1(const RSA *r);
|
||||||
const BIGNUM *RSA_get0_iqmp(const RSA *r);
|
const BIGNUM *RSA_get0_iqmp(const RSA *r);
|
||||||
|
const RSA_PSS_PARAMS *RSA_get0_pss_params(const RSA *r);
|
||||||
void RSA_clear_flags(RSA *r, int flags);
|
void RSA_clear_flags(RSA *r, int flags);
|
||||||
int RSA_test_flags(const RSA *r, int flags);
|
int RSA_test_flags(const RSA *r, int flags);
|
||||||
void RSA_set_flags(RSA *r, int flags);
|
void RSA_set_flags(RSA *r, int flags);
|
||||||
|
|
@ -279,14 +280,14 @@ int RSA_pkey_ctx_ctrl(EVP_PKEY_CTX *ctx, int optype, int cmd, int p1, void *p2);
|
||||||
DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey)
|
DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey)
|
||||||
DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey)
|
DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey)
|
||||||
|
|
||||||
typedef struct rsa_pss_params_st {
|
struct rsa_pss_params_st {
|
||||||
X509_ALGOR *hashAlgorithm;
|
X509_ALGOR *hashAlgorithm;
|
||||||
X509_ALGOR *maskGenAlgorithm;
|
X509_ALGOR *maskGenAlgorithm;
|
||||||
ASN1_INTEGER *saltLength;
|
ASN1_INTEGER *saltLength;
|
||||||
ASN1_INTEGER *trailerField;
|
ASN1_INTEGER *trailerField;
|
||||||
/* Decoded hash algorithm from maskGenAlgorithm */
|
/* Decoded hash algorithm from maskGenAlgorithm */
|
||||||
X509_ALGOR *maskHash;
|
X509_ALGOR *maskHash;
|
||||||
} RSA_PSS_PARAMS;
|
};
|
||||||
|
|
||||||
DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS)
|
DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS)
|
||||||
|
|
||||||
|
|
@ -456,9 +457,9 @@ int RSA_meth_set_priv_dec(RSA_METHOD *rsa,
|
||||||
unsigned char *to, RSA *rsa,
|
unsigned char *to, RSA *rsa,
|
||||||
int padding));
|
int padding));
|
||||||
int (*RSA_meth_get_mod_exp(const RSA_METHOD *meth))
|
int (*RSA_meth_get_mod_exp(const RSA_METHOD *meth))
|
||||||
(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
|
(BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx);
|
||||||
int RSA_meth_set_mod_exp(RSA_METHOD *rsa,
|
int RSA_meth_set_mod_exp(RSA_METHOD *rsa,
|
||||||
int (*mod_exp) (BIGNUM *r0, const BIGNUM *I, RSA *rsa,
|
int (*mod_exp) (BIGNUM *r0, const BIGNUM *i, RSA *rsa,
|
||||||
BN_CTX *ctx));
|
BN_CTX *ctx));
|
||||||
int (*RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth))
|
int (*RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth))
|
||||||
(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_RSAERR_H
|
#ifndef HEADER_RSAERR_H
|
||||||
# define HEADER_RSAERR_H
|
# define HEADER_RSAERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
@ -126,6 +130,7 @@ int ERR_load_RSA_strings(void);
|
||||||
# define RSA_R_KEY_PRIME_NUM_INVALID 165
|
# define RSA_R_KEY_PRIME_NUM_INVALID 165
|
||||||
# define RSA_R_KEY_SIZE_TOO_SMALL 120
|
# define RSA_R_KEY_SIZE_TOO_SMALL 120
|
||||||
# define RSA_R_LAST_OCTET_INVALID 134
|
# define RSA_R_LAST_OCTET_INVALID 134
|
||||||
|
# define RSA_R_MISSING_PRIVATE_KEY 179
|
||||||
# define RSA_R_MGF1_DIGEST_NOT_ALLOWED 152
|
# define RSA_R_MGF1_DIGEST_NOT_ALLOWED 152
|
||||||
# define RSA_R_MODULUS_TOO_LARGE 105
|
# define RSA_R_MODULUS_TOO_LARGE 105
|
||||||
# define RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R 168
|
# define RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R 168
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1999-2017 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -24,96 +24,96 @@ extern "C" {
|
||||||
typedef int (*sk_##t1##_compfunc)(const t3 * const *a, const t3 *const *b); \
|
typedef int (*sk_##t1##_compfunc)(const t3 * const *a, const t3 *const *b); \
|
||||||
typedef void (*sk_##t1##_freefunc)(t3 *a); \
|
typedef void (*sk_##t1##_freefunc)(t3 *a); \
|
||||||
typedef t3 * (*sk_##t1##_copyfunc)(const t3 *a); \
|
typedef t3 * (*sk_##t1##_copyfunc)(const t3 *a); \
|
||||||
static ossl_inline int sk_##t1##_num(const STACK_OF(t1) *sk) \
|
static ossl_unused ossl_inline int sk_##t1##_num(const STACK_OF(t1) *sk) \
|
||||||
{ \
|
{ \
|
||||||
return OPENSSL_sk_num((const OPENSSL_STACK *)sk); \
|
return OPENSSL_sk_num((const OPENSSL_STACK *)sk); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline t2 *sk_##t1##_value(const STACK_OF(t1) *sk, int idx) \
|
static ossl_unused ossl_inline t2 *sk_##t1##_value(const STACK_OF(t1) *sk, int idx) \
|
||||||
{ \
|
{ \
|
||||||
return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); \
|
return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline STACK_OF(t1) *sk_##t1##_new(sk_##t1##_compfunc compare) \
|
static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new(sk_##t1##_compfunc compare) \
|
||||||
{ \
|
{ \
|
||||||
return (STACK_OF(t1) *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); \
|
return (STACK_OF(t1) *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline STACK_OF(t1) *sk_##t1##_new_null(void) \
|
static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new_null(void) \
|
||||||
{ \
|
{ \
|
||||||
return (STACK_OF(t1) *)OPENSSL_sk_new_null(); \
|
return (STACK_OF(t1) *)OPENSSL_sk_new_null(); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline STACK_OF(t1) *sk_##t1##_new_reserve(sk_##t1##_compfunc compare, int n) \
|
static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new_reserve(sk_##t1##_compfunc compare, int n) \
|
||||||
{ \
|
{ \
|
||||||
return (STACK_OF(t1) *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); \
|
return (STACK_OF(t1) *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline int sk_##t1##_reserve(STACK_OF(t1) *sk, int n) \
|
static ossl_unused ossl_inline int sk_##t1##_reserve(STACK_OF(t1) *sk, int n) \
|
||||||
{ \
|
{ \
|
||||||
return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); \
|
return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline void sk_##t1##_free(STACK_OF(t1) *sk) \
|
static ossl_unused ossl_inline void sk_##t1##_free(STACK_OF(t1) *sk) \
|
||||||
{ \
|
{ \
|
||||||
OPENSSL_sk_free((OPENSSL_STACK *)sk); \
|
OPENSSL_sk_free((OPENSSL_STACK *)sk); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline void sk_##t1##_zero(STACK_OF(t1) *sk) \
|
static ossl_unused ossl_inline void sk_##t1##_zero(STACK_OF(t1) *sk) \
|
||||||
{ \
|
{ \
|
||||||
OPENSSL_sk_zero((OPENSSL_STACK *)sk); \
|
OPENSSL_sk_zero((OPENSSL_STACK *)sk); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline t2 *sk_##t1##_delete(STACK_OF(t1) *sk, int i) \
|
static ossl_unused ossl_inline t2 *sk_##t1##_delete(STACK_OF(t1) *sk, int i) \
|
||||||
{ \
|
{ \
|
||||||
return (t2 *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); \
|
return (t2 *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline t2 *sk_##t1##_delete_ptr(STACK_OF(t1) *sk, t2 *ptr) \
|
static ossl_unused ossl_inline t2 *sk_##t1##_delete_ptr(STACK_OF(t1) *sk, t2 *ptr) \
|
||||||
{ \
|
{ \
|
||||||
return (t2 *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, \
|
return (t2 *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, \
|
||||||
(const void *)ptr); \
|
(const void *)ptr); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline int sk_##t1##_push(STACK_OF(t1) *sk, t2 *ptr) \
|
static ossl_unused ossl_inline int sk_##t1##_push(STACK_OF(t1) *sk, t2 *ptr) \
|
||||||
{ \
|
{ \
|
||||||
return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); \
|
return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline int sk_##t1##_unshift(STACK_OF(t1) *sk, t2 *ptr) \
|
static ossl_unused ossl_inline int sk_##t1##_unshift(STACK_OF(t1) *sk, t2 *ptr) \
|
||||||
{ \
|
{ \
|
||||||
return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); \
|
return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline t2 *sk_##t1##_pop(STACK_OF(t1) *sk) \
|
static ossl_unused ossl_inline t2 *sk_##t1##_pop(STACK_OF(t1) *sk) \
|
||||||
{ \
|
{ \
|
||||||
return (t2 *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); \
|
return (t2 *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline t2 *sk_##t1##_shift(STACK_OF(t1) *sk) \
|
static ossl_unused ossl_inline t2 *sk_##t1##_shift(STACK_OF(t1) *sk) \
|
||||||
{ \
|
{ \
|
||||||
return (t2 *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); \
|
return (t2 *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline void sk_##t1##_pop_free(STACK_OF(t1) *sk, sk_##t1##_freefunc freefunc) \
|
static ossl_unused ossl_inline void sk_##t1##_pop_free(STACK_OF(t1) *sk, sk_##t1##_freefunc freefunc) \
|
||||||
{ \
|
{ \
|
||||||
OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc); \
|
OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline int sk_##t1##_insert(STACK_OF(t1) *sk, t2 *ptr, int idx) \
|
static ossl_unused ossl_inline int sk_##t1##_insert(STACK_OF(t1) *sk, t2 *ptr, int idx) \
|
||||||
{ \
|
{ \
|
||||||
return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); \
|
return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline t2 *sk_##t1##_set(STACK_OF(t1) *sk, int idx, t2 *ptr) \
|
static ossl_unused ossl_inline t2 *sk_##t1##_set(STACK_OF(t1) *sk, int idx, t2 *ptr) \
|
||||||
{ \
|
{ \
|
||||||
return (t2 *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); \
|
return (t2 *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline int sk_##t1##_find(STACK_OF(t1) *sk, t2 *ptr) \
|
static ossl_unused ossl_inline int sk_##t1##_find(STACK_OF(t1) *sk, t2 *ptr) \
|
||||||
{ \
|
{ \
|
||||||
return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); \
|
return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline int sk_##t1##_find_ex(STACK_OF(t1) *sk, t2 *ptr) \
|
static ossl_unused ossl_inline int sk_##t1##_find_ex(STACK_OF(t1) *sk, t2 *ptr) \
|
||||||
{ \
|
{ \
|
||||||
return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); \
|
return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline void sk_##t1##_sort(STACK_OF(t1) *sk) \
|
static ossl_unused ossl_inline void sk_##t1##_sort(STACK_OF(t1) *sk) \
|
||||||
{ \
|
{ \
|
||||||
OPENSSL_sk_sort((OPENSSL_STACK *)sk); \
|
OPENSSL_sk_sort((OPENSSL_STACK *)sk); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline int sk_##t1##_is_sorted(const STACK_OF(t1) *sk) \
|
static ossl_unused ossl_inline int sk_##t1##_is_sorted(const STACK_OF(t1) *sk) \
|
||||||
{ \
|
{ \
|
||||||
return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); \
|
return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline STACK_OF(t1) * sk_##t1##_dup(const STACK_OF(t1) *sk) \
|
static ossl_unused ossl_inline STACK_OF(t1) * sk_##t1##_dup(const STACK_OF(t1) *sk) \
|
||||||
{ \
|
{ \
|
||||||
return (STACK_OF(t1) *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); \
|
return (STACK_OF(t1) *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline STACK_OF(t1) *sk_##t1##_deep_copy(const STACK_OF(t1) *sk, \
|
static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_deep_copy(const STACK_OF(t1) *sk, \
|
||||||
sk_##t1##_copyfunc copyfunc, \
|
sk_##t1##_copyfunc copyfunc, \
|
||||||
sk_##t1##_freefunc freefunc) \
|
sk_##t1##_freefunc freefunc) \
|
||||||
{ \
|
{ \
|
||||||
|
|
@ -121,7 +121,7 @@ extern "C" {
|
||||||
(OPENSSL_sk_copyfunc)copyfunc, \
|
(OPENSSL_sk_copyfunc)copyfunc, \
|
||||||
(OPENSSL_sk_freefunc)freefunc); \
|
(OPENSSL_sk_freefunc)freefunc); \
|
||||||
} \
|
} \
|
||||||
static ossl_inline sk_##t1##_compfunc sk_##t1##_set_cmp_func(STACK_OF(t1) *sk, sk_##t1##_compfunc compare) \
|
static ossl_unused ossl_inline sk_##t1##_compfunc sk_##t1##_set_cmp_func(STACK_OF(t1) *sk, sk_##t1##_compfunc compare) \
|
||||||
{ \
|
{ \
|
||||||
return (sk_##t1##_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); \
|
return (sk_##t1##_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); \
|
||||||
}
|
}
|
||||||
|
|
@ -166,6 +166,41 @@ DEFINE_SPECIAL_STACK_OF_CONST(OPENSSL_CSTRING, char)
|
||||||
typedef void *OPENSSL_BLOCK;
|
typedef void *OPENSSL_BLOCK;
|
||||||
DEFINE_SPECIAL_STACK_OF(OPENSSL_BLOCK, void)
|
DEFINE_SPECIAL_STACK_OF(OPENSSL_BLOCK, void)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If called without higher optimization (min. -xO3) the Oracle Developer
|
||||||
|
* Studio compiler generates code for the defined (static inline) functions
|
||||||
|
* above.
|
||||||
|
* This would later lead to the linker complaining about missing symbols when
|
||||||
|
* this header file is included but the resulting object is not linked against
|
||||||
|
* the Crypto library (openssl#6912).
|
||||||
|
*/
|
||||||
|
# ifdef __SUNPRO_C
|
||||||
|
# pragma weak OPENSSL_sk_num
|
||||||
|
# pragma weak OPENSSL_sk_value
|
||||||
|
# pragma weak OPENSSL_sk_new
|
||||||
|
# pragma weak OPENSSL_sk_new_null
|
||||||
|
# pragma weak OPENSSL_sk_new_reserve
|
||||||
|
# pragma weak OPENSSL_sk_reserve
|
||||||
|
# pragma weak OPENSSL_sk_free
|
||||||
|
# pragma weak OPENSSL_sk_zero
|
||||||
|
# pragma weak OPENSSL_sk_delete
|
||||||
|
# pragma weak OPENSSL_sk_delete_ptr
|
||||||
|
# pragma weak OPENSSL_sk_push
|
||||||
|
# pragma weak OPENSSL_sk_unshift
|
||||||
|
# pragma weak OPENSSL_sk_pop
|
||||||
|
# pragma weak OPENSSL_sk_shift
|
||||||
|
# pragma weak OPENSSL_sk_pop_free
|
||||||
|
# pragma weak OPENSSL_sk_insert
|
||||||
|
# pragma weak OPENSSL_sk_set
|
||||||
|
# pragma weak OPENSSL_sk_find
|
||||||
|
# pragma weak OPENSSL_sk_find_ex
|
||||||
|
# pragma weak OPENSSL_sk_sort
|
||||||
|
# pragma weak OPENSSL_sk_is_sorted
|
||||||
|
# pragma weak OPENSSL_sk_dup
|
||||||
|
# pragma weak OPENSSL_sk_deep_copy
|
||||||
|
# pragma weak OPENSSL_sk_set_cmp_func
|
||||||
|
# endif /* __SUNPRO_C */
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
||||||
* Copyright 2005 Nokia. All rights reserved.
|
* Copyright 2005 Nokia. All rights reserved.
|
||||||
*
|
*
|
||||||
|
|
@ -494,6 +494,19 @@ typedef int (*SSL_verify_cb)(int preverify_ok, X509_STORE_CTX *x509_ctx);
|
||||||
*/
|
*/
|
||||||
# define SSL_MODE_ASYNC 0x00000100U
|
# define SSL_MODE_ASYNC 0x00000100U
|
||||||
|
|
||||||
|
/*
|
||||||
|
* When using DTLS/SCTP, include the terminating zero in the label
|
||||||
|
* used for computing the endpoint-pair shared secret. Required for
|
||||||
|
* interoperability with implementations having this bug like these
|
||||||
|
* older version of OpenSSL:
|
||||||
|
* - OpenSSL 1.0.0 series
|
||||||
|
* - OpenSSL 1.0.1 series
|
||||||
|
* - OpenSSL 1.0.2 series
|
||||||
|
* - OpenSSL 1.1.0 series
|
||||||
|
* - OpenSSL 1.1.1 and 1.1.1a
|
||||||
|
*/
|
||||||
|
# define SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG 0x00000400U
|
||||||
|
|
||||||
/* Cert related flags */
|
/* Cert related flags */
|
||||||
/*
|
/*
|
||||||
* Many implementations ignore some aspects of the TLS standards such as
|
* Many implementations ignore some aspects of the TLS standards such as
|
||||||
|
|
@ -1271,7 +1284,7 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
|
||||||
# define SSL_CTRL_SET_VERIFY_CERT_STORE 106
|
# define SSL_CTRL_SET_VERIFY_CERT_STORE 106
|
||||||
# define SSL_CTRL_SET_CHAIN_CERT_STORE 107
|
# define SSL_CTRL_SET_CHAIN_CERT_STORE 107
|
||||||
# define SSL_CTRL_GET_PEER_SIGNATURE_NID 108
|
# define SSL_CTRL_GET_PEER_SIGNATURE_NID 108
|
||||||
# define SSL_CTRL_GET_SERVER_TMP_KEY 109
|
# define SSL_CTRL_GET_PEER_TMP_KEY 109
|
||||||
# define SSL_CTRL_GET_RAW_CIPHERLIST 110
|
# define SSL_CTRL_GET_RAW_CIPHERLIST 110
|
||||||
# define SSL_CTRL_GET_EC_POINT_FORMATS 111
|
# define SSL_CTRL_GET_EC_POINT_FORMATS 111
|
||||||
# define SSL_CTRL_GET_CHAIN_CERTS 115
|
# define SSL_CTRL_GET_CHAIN_CERTS 115
|
||||||
|
|
@ -1290,6 +1303,10 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
|
||||||
# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG 129
|
# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG 129
|
||||||
# define SSL_CTRL_GET_MIN_PROTO_VERSION 130
|
# define SSL_CTRL_GET_MIN_PROTO_VERSION 130
|
||||||
# define SSL_CTRL_GET_MAX_PROTO_VERSION 131
|
# define SSL_CTRL_GET_MAX_PROTO_VERSION 131
|
||||||
|
# define SSL_CTRL_GET_SIGNATURE_NID 132
|
||||||
|
# define SSL_CTRL_GET_TMP_KEY 133
|
||||||
|
# define SSL_CTRL_GET_VERIFY_CERT_STORE 137
|
||||||
|
# define SSL_CTRL_GET_CHAIN_CERT_STORE 138
|
||||||
# define SSL_CERT_SET_FIRST 1
|
# define SSL_CERT_SET_FIRST 1
|
||||||
# define SSL_CERT_SET_NEXT 2
|
# define SSL_CERT_SET_NEXT 2
|
||||||
# define SSL_CERT_SET_SERVER 3
|
# define SSL_CERT_SET_SERVER 3
|
||||||
|
|
@ -1345,64 +1362,72 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
|
||||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))
|
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))
|
||||||
# define SSL_CTX_set1_verify_cert_store(ctx,st) \
|
# define SSL_CTX_set1_verify_cert_store(ctx,st) \
|
||||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))
|
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))
|
||||||
|
# define SSL_CTX_get0_verify_cert_store(ctx,st) \
|
||||||
|
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_VERIFY_CERT_STORE,0,(char *)(st))
|
||||||
# define SSL_CTX_set0_chain_cert_store(ctx,st) \
|
# define SSL_CTX_set0_chain_cert_store(ctx,st) \
|
||||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))
|
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))
|
||||||
# define SSL_CTX_set1_chain_cert_store(ctx,st) \
|
# define SSL_CTX_set1_chain_cert_store(ctx,st) \
|
||||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))
|
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))
|
||||||
# define SSL_set0_chain(ctx,sk) \
|
# define SSL_CTX_get0_chain_cert_store(ctx,st) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_CHAIN,0,(char *)(sk))
|
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_CHAIN_CERT_STORE,0,(char *)(st))
|
||||||
# define SSL_set1_chain(ctx,sk) \
|
# define SSL_set0_chain(s,sk) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_CHAIN,1,(char *)(sk))
|
SSL_ctrl(s,SSL_CTRL_CHAIN,0,(char *)(sk))
|
||||||
# define SSL_add0_chain_cert(ctx,x509) \
|
# define SSL_set1_chain(s,sk) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_CHAIN_CERT,0,(char *)(x509))
|
SSL_ctrl(s,SSL_CTRL_CHAIN,1,(char *)(sk))
|
||||||
# define SSL_add1_chain_cert(ctx,x509) \
|
# define SSL_add0_chain_cert(s,x509) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_CHAIN_CERT,1,(char *)(x509))
|
SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,0,(char *)(x509))
|
||||||
# define SSL_get0_chain_certs(ctx,px509) \
|
# define SSL_add1_chain_cert(s,x509) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_GET_CHAIN_CERTS,0,px509)
|
SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,1,(char *)(x509))
|
||||||
# define SSL_clear_chain_certs(ctx) \
|
# define SSL_get0_chain_certs(s,px509) \
|
||||||
SSL_set0_chain(ctx,NULL)
|
SSL_ctrl(s,SSL_CTRL_GET_CHAIN_CERTS,0,px509)
|
||||||
|
# define SSL_clear_chain_certs(s) \
|
||||||
|
SSL_set0_chain(s,NULL)
|
||||||
# define SSL_build_cert_chain(s, flags) \
|
# define SSL_build_cert_chain(s, flags) \
|
||||||
SSL_ctrl(s,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL)
|
SSL_ctrl(s,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL)
|
||||||
# define SSL_select_current_cert(ctx,x509) \
|
# define SSL_select_current_cert(s,x509) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509))
|
SSL_ctrl(s,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509))
|
||||||
# define SSL_set_current_cert(ctx,op) \
|
# define SSL_set_current_cert(s,op) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_SET_CURRENT_CERT, op, NULL)
|
SSL_ctrl(s,SSL_CTRL_SET_CURRENT_CERT, op, NULL)
|
||||||
# define SSL_set0_verify_cert_store(s,st) \
|
# define SSL_set0_verify_cert_store(s,st) \
|
||||||
SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))
|
SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))
|
||||||
# define SSL_set1_verify_cert_store(s,st) \
|
# define SSL_set1_verify_cert_store(s,st) \
|
||||||
SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))
|
SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))
|
||||||
|
#define SSL_get0_verify_cert_store(s,st) \
|
||||||
|
SSL_ctrl(s,SSL_CTRL_GET_VERIFY_CERT_STORE,0,(char *)(st))
|
||||||
# define SSL_set0_chain_cert_store(s,st) \
|
# define SSL_set0_chain_cert_store(s,st) \
|
||||||
SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))
|
SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))
|
||||||
# define SSL_set1_chain_cert_store(s,st) \
|
# define SSL_set1_chain_cert_store(s,st) \
|
||||||
SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))
|
SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))
|
||||||
# define SSL_get1_groups(ctx, s) \
|
#define SSL_get0_chain_cert_store(s,st) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_GET_GROUPS,0,(char *)(s))
|
SSL_ctrl(s,SSL_CTRL_GET_CHAIN_CERT_STORE,0,(char *)(st))
|
||||||
|
# define SSL_get1_groups(s, glist) \
|
||||||
|
SSL_ctrl(s,SSL_CTRL_GET_GROUPS,0,(int*)(glist))
|
||||||
# define SSL_CTX_set1_groups(ctx, glist, glistlen) \
|
# define SSL_CTX_set1_groups(ctx, glist, glistlen) \
|
||||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist))
|
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(int *)(glist))
|
||||||
# define SSL_CTX_set1_groups_list(ctx, s) \
|
# define SSL_CTX_set1_groups_list(ctx, s) \
|
||||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s))
|
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s))
|
||||||
# define SSL_set1_groups(ctx, glist, glistlen) \
|
# define SSL_set1_groups(s, glist, glistlen) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist))
|
SSL_ctrl(s,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist))
|
||||||
# define SSL_set1_groups_list(ctx, s) \
|
# define SSL_set1_groups_list(s, str) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s))
|
SSL_ctrl(s,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(str))
|
||||||
# define SSL_get_shared_group(s, n) \
|
# define SSL_get_shared_group(s, n) \
|
||||||
SSL_ctrl(s,SSL_CTRL_GET_SHARED_GROUP,n,NULL)
|
SSL_ctrl(s,SSL_CTRL_GET_SHARED_GROUP,n,NULL)
|
||||||
# define SSL_CTX_set1_sigalgs(ctx, slist, slistlen) \
|
# define SSL_CTX_set1_sigalgs(ctx, slist, slistlen) \
|
||||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))
|
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))
|
||||||
# define SSL_CTX_set1_sigalgs_list(ctx, s) \
|
# define SSL_CTX_set1_sigalgs_list(ctx, s) \
|
||||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(s))
|
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(s))
|
||||||
# define SSL_set1_sigalgs(ctx, slist, slistlen) \
|
# define SSL_set1_sigalgs(s, slist, slistlen) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))
|
SSL_ctrl(s,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))
|
||||||
# define SSL_set1_sigalgs_list(ctx, s) \
|
# define SSL_set1_sigalgs_list(s, str) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(s))
|
SSL_ctrl(s,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(str))
|
||||||
# define SSL_CTX_set1_client_sigalgs(ctx, slist, slistlen) \
|
# define SSL_CTX_set1_client_sigalgs(ctx, slist, slistlen) \
|
||||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(int *)(slist))
|
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(int *)(slist))
|
||||||
# define SSL_CTX_set1_client_sigalgs_list(ctx, s) \
|
# define SSL_CTX_set1_client_sigalgs_list(ctx, s) \
|
||||||
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(s))
|
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(s))
|
||||||
# define SSL_set1_client_sigalgs(ctx, slist, slistlen) \
|
# define SSL_set1_client_sigalgs(s, slist, slistlen) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS,clistlen,(int *)(slist))
|
SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(int *)(slist))
|
||||||
# define SSL_set1_client_sigalgs_list(ctx, s) \
|
# define SSL_set1_client_sigalgs_list(s, str) \
|
||||||
SSL_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(s))
|
SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(str))
|
||||||
# define SSL_get0_certificate_types(s, clist) \
|
# define SSL_get0_certificate_types(s, clist) \
|
||||||
SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, (char *)(clist))
|
SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, (char *)(clist))
|
||||||
# define SSL_CTX_set1_client_certificate_types(ctx, clist, clistlen) \
|
# define SSL_CTX_set1_client_certificate_types(ctx, clist, clistlen) \
|
||||||
|
|
@ -1410,10 +1435,14 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
|
||||||
(char *)(clist))
|
(char *)(clist))
|
||||||
# define SSL_set1_client_certificate_types(s, clist, clistlen) \
|
# define SSL_set1_client_certificate_types(s, clist, clistlen) \
|
||||||
SSL_ctrl(s,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen,(char *)(clist))
|
SSL_ctrl(s,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen,(char *)(clist))
|
||||||
|
# define SSL_get_signature_nid(s, pn) \
|
||||||
|
SSL_ctrl(s,SSL_CTRL_GET_SIGNATURE_NID,0,pn)
|
||||||
# define SSL_get_peer_signature_nid(s, pn) \
|
# define SSL_get_peer_signature_nid(s, pn) \
|
||||||
SSL_ctrl(s,SSL_CTRL_GET_PEER_SIGNATURE_NID,0,pn)
|
SSL_ctrl(s,SSL_CTRL_GET_PEER_SIGNATURE_NID,0,pn)
|
||||||
# define SSL_get_server_tmp_key(s, pk) \
|
# define SSL_get_peer_tmp_key(s, pk) \
|
||||||
SSL_ctrl(s,SSL_CTRL_GET_SERVER_TMP_KEY,0,pk)
|
SSL_ctrl(s,SSL_CTRL_GET_PEER_TMP_KEY,0,pk)
|
||||||
|
# define SSL_get_tmp_key(s, pk) \
|
||||||
|
SSL_ctrl(s,SSL_CTRL_GET_TMP_KEY,0,pk)
|
||||||
# define SSL_get0_raw_cipherlist(s, plst) \
|
# define SSL_get0_raw_cipherlist(s, plst) \
|
||||||
SSL_ctrl(s,SSL_CTRL_GET_RAW_CIPHERLIST,0,plst)
|
SSL_ctrl(s,SSL_CTRL_GET_RAW_CIPHERLIST,0,plst)
|
||||||
# define SSL_get0_ec_point_formats(s, plst) \
|
# define SSL_get0_ec_point_formats(s, plst) \
|
||||||
|
|
@ -1435,6 +1464,12 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
|
||||||
# define SSL_get_max_proto_version(s) \
|
# define SSL_get_max_proto_version(s) \
|
||||||
SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)
|
SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)
|
||||||
|
|
||||||
|
/* Backwards compatibility, original 1.1.0 names */
|
||||||
|
# define SSL_CTRL_GET_SERVER_TMP_KEY \
|
||||||
|
SSL_CTRL_GET_PEER_TMP_KEY
|
||||||
|
# define SSL_get_server_tmp_key(s, pk) \
|
||||||
|
SSL_get_peer_tmp_key(s, pk)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The following symbol names are old and obsolete. They are kept
|
* The following symbol names are old and obsolete. They are kept
|
||||||
* for compatibility reasons only and should not be used anymore.
|
* for compatibility reasons only and should not be used anymore.
|
||||||
|
|
@ -1892,17 +1927,17 @@ __owur STACK_OF(SSL_CIPHER) *SSL_get1_supported_ciphers(SSL *s);
|
||||||
|
|
||||||
__owur int SSL_do_handshake(SSL *s);
|
__owur int SSL_do_handshake(SSL *s);
|
||||||
int SSL_key_update(SSL *s, int updatetype);
|
int SSL_key_update(SSL *s, int updatetype);
|
||||||
int SSL_get_key_update_type(SSL *s);
|
int SSL_get_key_update_type(const SSL *s);
|
||||||
int SSL_renegotiate(SSL *s);
|
int SSL_renegotiate(SSL *s);
|
||||||
int SSL_renegotiate_abbreviated(SSL *s);
|
int SSL_renegotiate_abbreviated(SSL *s);
|
||||||
__owur int SSL_renegotiate_pending(SSL *s);
|
__owur int SSL_renegotiate_pending(const SSL *s);
|
||||||
int SSL_shutdown(SSL *s);
|
int SSL_shutdown(SSL *s);
|
||||||
__owur int SSL_verify_client_post_handshake(SSL *s);
|
__owur int SSL_verify_client_post_handshake(SSL *s);
|
||||||
void SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);
|
void SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);
|
||||||
void SSL_set_post_handshake_auth(SSL *s, int val);
|
void SSL_set_post_handshake_auth(SSL *s, int val);
|
||||||
|
|
||||||
__owur const SSL_METHOD *SSL_CTX_get_ssl_method(SSL_CTX *ctx);
|
__owur const SSL_METHOD *SSL_CTX_get_ssl_method(const SSL_CTX *ctx);
|
||||||
__owur const SSL_METHOD *SSL_get_ssl_method(SSL *s);
|
__owur const SSL_METHOD *SSL_get_ssl_method(const SSL *s);
|
||||||
__owur int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method);
|
__owur int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method);
|
||||||
__owur const char *SSL_alert_type_string_long(int value);
|
__owur const char *SSL_alert_type_string_long(int value);
|
||||||
__owur const char *SSL_alert_type_string(int value);
|
__owur const char *SSL_alert_type_string(int value);
|
||||||
|
|
@ -2050,8 +2085,8 @@ void SSL_set_tmp_dh_callback(SSL *ssl,
|
||||||
int keylength));
|
int keylength));
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
__owur const COMP_METHOD *SSL_get_current_compression(SSL *s);
|
__owur const COMP_METHOD *SSL_get_current_compression(const SSL *s);
|
||||||
__owur const COMP_METHOD *SSL_get_current_expansion(SSL *s);
|
__owur const COMP_METHOD *SSL_get_current_expansion(const SSL *s);
|
||||||
__owur const char *SSL_COMP_get_name(const COMP_METHOD *comp);
|
__owur const char *SSL_COMP_get_name(const COMP_METHOD *comp);
|
||||||
__owur const char *SSL_COMP_get0_name(const SSL_COMP *comp);
|
__owur const char *SSL_COMP_get0_name(const SSL_COMP *comp);
|
||||||
__owur int SSL_COMP_get_id(const SSL_COMP *comp);
|
__owur int SSL_COMP_get_id(const SSL_COMP *comp);
|
||||||
|
|
@ -2095,26 +2130,26 @@ void SSL_CTX_set_record_padding_callback(SSL_CTX *ctx,
|
||||||
size_t (*cb) (SSL *ssl, int type,
|
size_t (*cb) (SSL *ssl, int type,
|
||||||
size_t len, void *arg));
|
size_t len, void *arg));
|
||||||
void SSL_CTX_set_record_padding_callback_arg(SSL_CTX *ctx, void *arg);
|
void SSL_CTX_set_record_padding_callback_arg(SSL_CTX *ctx, void *arg);
|
||||||
void *SSL_CTX_get_record_padding_callback_arg(SSL_CTX *ctx);
|
void *SSL_CTX_get_record_padding_callback_arg(const SSL_CTX *ctx);
|
||||||
int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);
|
int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);
|
||||||
|
|
||||||
void SSL_set_record_padding_callback(SSL *ssl,
|
void SSL_set_record_padding_callback(SSL *ssl,
|
||||||
size_t (*cb) (SSL *ssl, int type,
|
size_t (*cb) (SSL *ssl, int type,
|
||||||
size_t len, void *arg));
|
size_t len, void *arg));
|
||||||
void SSL_set_record_padding_callback_arg(SSL *ssl, void *arg);
|
void SSL_set_record_padding_callback_arg(SSL *ssl, void *arg);
|
||||||
void *SSL_get_record_padding_callback_arg(SSL *ssl);
|
void *SSL_get_record_padding_callback_arg(const SSL *ssl);
|
||||||
int SSL_set_block_padding(SSL *ssl, size_t block_size);
|
int SSL_set_block_padding(SSL *ssl, size_t block_size);
|
||||||
|
|
||||||
int SSL_set_num_tickets(SSL *s, size_t num_tickets);
|
int SSL_set_num_tickets(SSL *s, size_t num_tickets);
|
||||||
size_t SSL_get_num_tickets(SSL *s);
|
size_t SSL_get_num_tickets(const SSL *s);
|
||||||
int SSL_CTX_set_num_tickets(SSL_CTX *ctx, size_t num_tickets);
|
int SSL_CTX_set_num_tickets(SSL_CTX *ctx, size_t num_tickets);
|
||||||
size_t SSL_CTX_get_num_tickets(SSL_CTX *ctx);
|
size_t SSL_CTX_get_num_tickets(const SSL_CTX *ctx);
|
||||||
|
|
||||||
# if OPENSSL_API_COMPAT < 0x10100000L
|
# if OPENSSL_API_COMPAT < 0x10100000L
|
||||||
# define SSL_cache_hit(s) SSL_session_reused(s)
|
# define SSL_cache_hit(s) SSL_session_reused(s)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
__owur int SSL_session_reused(SSL *s);
|
__owur int SSL_session_reused(const SSL *s);
|
||||||
__owur int SSL_is_server(const SSL *s);
|
__owur int SSL_is_server(const SSL *s);
|
||||||
|
|
||||||
__owur __owur SSL_CONF_CTX *SSL_CONF_CTX_new(void);
|
__owur __owur SSL_CONF_CTX *SSL_CONF_CTX_new(void);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
|
|
@ -292,6 +292,9 @@ extern "C" {
|
||||||
|
|
||||||
# define TLS1_FLAGS_STATELESS 0x0800
|
# define TLS1_FLAGS_STATELESS 0x0800
|
||||||
|
|
||||||
|
/* Set if extended master secret extension required on renegotiation */
|
||||||
|
# define TLS1_FLAGS_REQUIRED_EXTMS 0x1000
|
||||||
|
|
||||||
# define SSL3_MT_HELLO_REQUEST 0
|
# define SSL3_MT_HELLO_REQUEST 0
|
||||||
# define SSL3_MT_CLIENT_HELLO 1
|
# define SSL3_MT_CLIENT_HELLO 1
|
||||||
# define SSL3_MT_SERVER_HELLO 2
|
# define SSL3_MT_SERVER_HELLO 2
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_SSLERR_H
|
#ifndef HEADER_SSLERR_H
|
||||||
# define HEADER_SSLERR_H
|
# define HEADER_SSLERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
@ -66,6 +70,7 @@ int ERR_load_SSL_strings(void);
|
||||||
# define SSL_F_FINAL_EMS 486
|
# define SSL_F_FINAL_EMS 486
|
||||||
# define SSL_F_FINAL_KEY_SHARE 503
|
# define SSL_F_FINAL_KEY_SHARE 503
|
||||||
# define SSL_F_FINAL_MAXFRAGMENTLEN 557
|
# define SSL_F_FINAL_MAXFRAGMENTLEN 557
|
||||||
|
# define SSL_F_FINAL_PSK 639
|
||||||
# define SSL_F_FINAL_RENEGOTIATE 483
|
# define SSL_F_FINAL_RENEGOTIATE 483
|
||||||
# define SSL_F_FINAL_SERVER_NAME 558
|
# define SSL_F_FINAL_SERVER_NAME 558
|
||||||
# define SSL_F_FINAL_SIG_ALGS 497
|
# define SSL_F_FINAL_SIG_ALGS 497
|
||||||
|
|
@ -84,6 +89,7 @@ int ERR_load_SSL_strings(void);
|
||||||
# define SSL_F_OSSL_STATEM_SERVER_CONSTRUCT_MESSAGE 431
|
# define SSL_F_OSSL_STATEM_SERVER_CONSTRUCT_MESSAGE 431
|
||||||
# define SSL_F_OSSL_STATEM_SERVER_POST_PROCESS_MESSAGE 601
|
# define SSL_F_OSSL_STATEM_SERVER_POST_PROCESS_MESSAGE 601
|
||||||
# define SSL_F_OSSL_STATEM_SERVER_POST_WORK 602
|
# define SSL_F_OSSL_STATEM_SERVER_POST_WORK 602
|
||||||
|
# define SSL_F_OSSL_STATEM_SERVER_PRE_WORK 640
|
||||||
# define SSL_F_OSSL_STATEM_SERVER_PROCESS_MESSAGE 603
|
# define SSL_F_OSSL_STATEM_SERVER_PROCESS_MESSAGE 603
|
||||||
# define SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION 418
|
# define SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION 418
|
||||||
# define SSL_F_OSSL_STATEM_SERVER_WRITE_TRANSITION 604
|
# define SSL_F_OSSL_STATEM_SERVER_WRITE_TRANSITION 604
|
||||||
|
|
@ -587,6 +593,7 @@ int ERR_load_SSL_strings(void);
|
||||||
# define SSL_R_MISSING_ECDSA_SIGNING_CERT 381
|
# define SSL_R_MISSING_ECDSA_SIGNING_CERT 381
|
||||||
# define SSL_R_MISSING_FATAL 256
|
# define SSL_R_MISSING_FATAL 256
|
||||||
# define SSL_R_MISSING_PARAMETERS 290
|
# define SSL_R_MISSING_PARAMETERS 290
|
||||||
|
# define SSL_R_MISSING_PSK_KEX_MODES_EXTENSION 310
|
||||||
# define SSL_R_MISSING_RSA_CERTIFICATE 168
|
# define SSL_R_MISSING_RSA_CERTIFICATE 168
|
||||||
# define SSL_R_MISSING_RSA_ENCRYPTING_CERT 169
|
# define SSL_R_MISSING_RSA_ENCRYPTING_CERT 169
|
||||||
# define SSL_R_MISSING_RSA_SIGNING_CERT 170
|
# define SSL_R_MISSING_RSA_SIGNING_CERT 170
|
||||||
|
|
@ -596,6 +603,7 @@ int ERR_load_SSL_strings(void);
|
||||||
# define SSL_R_MISSING_SUPPORTED_GROUPS_EXTENSION 209
|
# define SSL_R_MISSING_SUPPORTED_GROUPS_EXTENSION 209
|
||||||
# define SSL_R_MISSING_TMP_DH_KEY 171
|
# define SSL_R_MISSING_TMP_DH_KEY 171
|
||||||
# define SSL_R_MISSING_TMP_ECDH_KEY 311
|
# define SSL_R_MISSING_TMP_ECDH_KEY 311
|
||||||
|
# define SSL_R_MIXED_HANDSHAKE_AND_NON_HANDSHAKE_DATA 293
|
||||||
# define SSL_R_NOT_ON_RECORD_BOUNDARY 182
|
# define SSL_R_NOT_ON_RECORD_BOUNDARY 182
|
||||||
# define SSL_R_NOT_REPLACING_CERTIFICATE 289
|
# define SSL_R_NOT_REPLACING_CERTIFICATE 289
|
||||||
# define SSL_R_NOT_SERVER 284
|
# define SSL_R_NOT_SERVER 284
|
||||||
|
|
@ -627,6 +635,7 @@ int ERR_load_SSL_strings(void);
|
||||||
# define SSL_R_NO_VERIFY_COOKIE_CALLBACK 403
|
# define SSL_R_NO_VERIFY_COOKIE_CALLBACK 403
|
||||||
# define SSL_R_NULL_SSL_CTX 195
|
# define SSL_R_NULL_SSL_CTX 195
|
||||||
# define SSL_R_NULL_SSL_METHOD_PASSED 196
|
# define SSL_R_NULL_SSL_METHOD_PASSED 196
|
||||||
|
# define SSL_R_OCSP_CALLBACK_FAILURE 294
|
||||||
# define SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED 197
|
# define SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED 197
|
||||||
# define SSL_R_OLD_SESSION_COMPRESSION_ALGORITHM_NOT_RETURNED 344
|
# define SSL_R_OLD_SESSION_COMPRESSION_ALGORITHM_NOT_RETURNED 344
|
||||||
# define SSL_R_OVERFLOW_ERROR 237
|
# define SSL_R_OVERFLOW_ERROR 237
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -85,7 +85,7 @@ OSSL_STORE_INFO *OSSL_STORE_load(OSSL_STORE_CTX *ctx);
|
||||||
int OSSL_STORE_eof(OSSL_STORE_CTX *ctx);
|
int OSSL_STORE_eof(OSSL_STORE_CTX *ctx);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check if an error occured
|
* Check if an error occurred
|
||||||
* Returns 1 if it did, 0 otherwise.
|
* Returns 1 if it did, 0 otherwise.
|
||||||
*/
|
*/
|
||||||
int OSSL_STORE_error(OSSL_STORE_CTX *ctx);
|
int OSSL_STORE_error(OSSL_STORE_CTX *ctx);
|
||||||
|
|
@ -117,7 +117,7 @@ int OSSL_STORE_close(OSSL_STORE_CTX *ctx);
|
||||||
* Functions to generate OSSL_STORE_INFOs, one function for each type we
|
* Functions to generate OSSL_STORE_INFOs, one function for each type we
|
||||||
* support having in them, as well as a generic constructor.
|
* support having in them, as well as a generic constructor.
|
||||||
*
|
*
|
||||||
* In all cases, ownership of the object is transfered to the OSSL_STORE_INFO
|
* In all cases, ownership of the object is transferred to the OSSL_STORE_INFO
|
||||||
* and will therefore be freed when the OSSL_STORE_INFO is freed.
|
* and will therefore be freed when the OSSL_STORE_INFO is freed.
|
||||||
*/
|
*/
|
||||||
OSSL_STORE_INFO *OSSL_STORE_INFO_new_NAME(char *name);
|
OSSL_STORE_INFO *OSSL_STORE_INFO_new_NAME(char *name);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_OSSL_STOREERR_H
|
#ifndef HEADER_OSSL_STOREERR_H
|
||||||
# define HEADER_OSSL_STOREERR_H
|
# define HEADER_OSSL_STOREERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -28,21 +28,6 @@
|
||||||
# undef i2d_ECPKPARAMETERS
|
# undef i2d_ECPKPARAMETERS
|
||||||
# define i2d_ECPKPARAMETERS i2d_UC_ECPKPARAMETERS
|
# define i2d_ECPKPARAMETERS i2d_UC_ECPKPARAMETERS
|
||||||
|
|
||||||
/*
|
|
||||||
* These functions do not seem to exist! However, I'm paranoid... Original
|
|
||||||
* command in x509v3.h: These functions are being redefined in another
|
|
||||||
* directory, and clash when the linker is case-insensitive, so let's hide
|
|
||||||
* them a little, by giving them an extra 'o' at the beginning of the name...
|
|
||||||
*/
|
|
||||||
# undef X509v3_cleanup_extensions
|
|
||||||
# define X509v3_cleanup_extensions oX509v3_cleanup_extensions
|
|
||||||
# undef X509v3_add_extension
|
|
||||||
# define X509v3_add_extension oX509v3_add_extension
|
|
||||||
# undef X509v3_add_netscape_extensions
|
|
||||||
# define X509v3_add_netscape_extensions oX509v3_add_netscape_extensions
|
|
||||||
# undef X509v3_add_standard_extensions
|
|
||||||
# define X509v3_add_standard_extensions oX509v3_add_standard_extensions
|
|
||||||
|
|
||||||
/* This one clashes with CMS_data_create */
|
/* This one clashes with CMS_data_create */
|
||||||
# undef cms_Data_create
|
# undef cms_Data_create
|
||||||
# define cms_Data_create priv_cms_Data_create
|
# define cms_Data_create priv_cms_Data_create
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
||||||
* Copyright 2005 Nokia. All rights reserved.
|
* Copyright 2005 Nokia. All rights reserved.
|
||||||
*
|
*
|
||||||
|
|
@ -241,6 +241,7 @@ __owur int SSL_export_keying_material_early(SSL *s, unsigned char *out,
|
||||||
size_t contextlen);
|
size_t contextlen);
|
||||||
|
|
||||||
int SSL_get_peer_signature_type_nid(const SSL *s, int *pnid);
|
int SSL_get_peer_signature_type_nid(const SSL *s, int *pnid);
|
||||||
|
int SSL_get_signature_type_nid(const SSL *s, int *pnid);
|
||||||
|
|
||||||
int SSL_get_sigalgs(SSL *s, int idx,
|
int SSL_get_sigalgs(SSL *s, int idx,
|
||||||
int *psign, int *phash, int *psignandhash,
|
int *psign, int *phash, int *psignandhash,
|
||||||
|
|
@ -1221,7 +1222,7 @@ __owur int SSL_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain)
|
||||||
/*
|
/*
|
||||||
* extended master secret
|
* extended master secret
|
||||||
*/
|
*/
|
||||||
# define TLS_MD_EXTENDED_MASTER_SECRET_CONST "\x65\x78\x74\x65\x63\x64\x65\x64\x20\x6d\x61\x73\x74\x65\x72\x20\x73\x65\x63\x72\x65\x74"
|
# define TLS_MD_EXTENDED_MASTER_SECRET_CONST "\x65\x78\x74\x65\x6e\x64\x65\x64\x20\x6d\x61\x73\x74\x65\x72\x20\x73\x65\x63\x72\x65\x74"
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* TLS Session Ticket extension struct */
|
/* TLS Session Ticket extension struct */
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_TSERR_H
|
#ifndef HEADER_TSERR_H
|
||||||
# define HEADER_TSERR_H
|
# define HEADER_TSERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# include <openssl/opensslconf.h>
|
# include <openssl/opensslconf.h>
|
||||||
|
|
||||||
# ifndef OPENSSL_NO_TS
|
# ifndef OPENSSL_NO_TS
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_UIERR_H
|
#ifndef HEADER_UIERR_H
|
||||||
# define HEADER_UIERR_H
|
# define HEADER_UIERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
|
|
@ -478,6 +478,7 @@ void X509_ALGOR_get0(const ASN1_OBJECT **paobj, int *pptype,
|
||||||
const void **ppval, const X509_ALGOR *algor);
|
const void **ppval, const X509_ALGOR *algor);
|
||||||
void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md);
|
void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md);
|
||||||
int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b);
|
int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b);
|
||||||
|
int X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src);
|
||||||
|
|
||||||
X509_NAME *X509_NAME_dup(X509_NAME *xn);
|
X509_NAME *X509_NAME_dup(X509_NAME *xn);
|
||||||
X509_NAME_ENTRY *X509_NAME_ENTRY_dup(X509_NAME_ENTRY *ne);
|
X509_NAME_ENTRY *X509_NAME_ENTRY_dup(X509_NAME_ENTRY *ne);
|
||||||
|
|
@ -679,6 +680,8 @@ X509_NAME *X509_REQ_get_subject_name(const X509_REQ *req);
|
||||||
int X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name);
|
int X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name);
|
||||||
void X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig,
|
void X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig,
|
||||||
const X509_ALGOR **palg);
|
const X509_ALGOR **palg);
|
||||||
|
void X509_REQ_set0_signature(X509_REQ *req, ASN1_BIT_STRING *psig);
|
||||||
|
int X509_REQ_set1_signature_algo(X509_REQ *req, X509_ALGOR *palg);
|
||||||
int X509_REQ_get_signature_nid(const X509_REQ *req);
|
int X509_REQ_get_signature_nid(const X509_REQ *req);
|
||||||
int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp);
|
int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp);
|
||||||
int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey);
|
int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey);
|
||||||
|
|
@ -930,7 +933,7 @@ STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE)
|
||||||
int type,
|
int type,
|
||||||
const unsigned char *bytes,
|
const unsigned char *bytes,
|
||||||
int len);
|
int len);
|
||||||
void *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x,
|
void *X509at_get0_data_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *x,
|
||||||
const ASN1_OBJECT *obj, int lastpos, int type);
|
const ASN1_OBJECT *obj, int lastpos, int type);
|
||||||
X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid,
|
X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid,
|
||||||
int atrtype, const void *data,
|
int atrtype, const void *data,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -184,6 +184,10 @@ void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth);
|
||||||
# define X509_V_ERR_OCSP_VERIFY_NEEDED 73 /* Need OCSP verification */
|
# define X509_V_ERR_OCSP_VERIFY_NEEDED 73 /* Need OCSP verification */
|
||||||
# define X509_V_ERR_OCSP_VERIFY_FAILED 74 /* Couldn't verify cert through OCSP */
|
# define X509_V_ERR_OCSP_VERIFY_FAILED 74 /* Couldn't verify cert through OCSP */
|
||||||
# define X509_V_ERR_OCSP_CERT_UNKNOWN 75 /* Certificate wasn't recognized by the OCSP responder */
|
# define X509_V_ERR_OCSP_CERT_UNKNOWN 75 /* Certificate wasn't recognized by the OCSP responder */
|
||||||
|
# define X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH 76
|
||||||
|
# define X509_V_ERR_NO_ISSUER_PUBLIC_KEY 77
|
||||||
|
# define X509_V_ERR_UNSUPPORTED_SIGNATURE_ALGORITHM 78
|
||||||
|
# define X509_V_ERR_EC_KEY_EXPLICIT_PARAMS 79
|
||||||
|
|
||||||
/* Certificate verify flags */
|
/* Certificate verify flags */
|
||||||
|
|
||||||
|
|
@ -362,7 +366,11 @@ X509_STORE_CTX_cleanup_fn X509_STORE_CTX_get_cleanup(X509_STORE_CTX *ctx);
|
||||||
# define X509_STORE_CTX_set_chain X509_STORE_CTX_set0_untrusted
|
# define X509_STORE_CTX_set_chain X509_STORE_CTX_set0_untrusted
|
||||||
# define X509_STORE_CTX_trusted_stack X509_STORE_CTX_set0_trusted_stack
|
# define X509_STORE_CTX_trusted_stack X509_STORE_CTX_set0_trusted_stack
|
||||||
# define X509_STORE_get_by_subject X509_STORE_CTX_get_by_subject
|
# define X509_STORE_get_by_subject X509_STORE_CTX_get_by_subject
|
||||||
|
# define X509_STORE_get1_certs X509_STORE_CTX_get1_certs
|
||||||
|
# define X509_STORE_get1_crls X509_STORE_CTX_get1_crls
|
||||||
|
/* the following macro is misspelled; use X509_STORE_get1_certs instead */
|
||||||
# define X509_STORE_get1_cert X509_STORE_CTX_get1_certs
|
# define X509_STORE_get1_cert X509_STORE_CTX_get1_certs
|
||||||
|
/* the following macro is misspelled; use X509_STORE_get1_crls instead */
|
||||||
# define X509_STORE_get1_crl X509_STORE_CTX_get1_crls
|
# define X509_STORE_get1_crl X509_STORE_CTX_get1_crls
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,8 @@
|
||||||
#ifndef HEADER_X509ERR_H
|
#ifndef HEADER_X509ERR_H
|
||||||
# define HEADER_X509ERR_H
|
# define HEADER_X509ERR_H
|
||||||
|
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
@ -61,6 +63,7 @@ int ERR_load_X509_strings(void);
|
||||||
# define X509_F_X509_OBJECT_NEW 150
|
# define X509_F_X509_OBJECT_NEW 150
|
||||||
# define X509_F_X509_PRINT_EX_FP 118
|
# define X509_F_X509_PRINT_EX_FP 118
|
||||||
# define X509_F_X509_PUBKEY_DECODE 148
|
# define X509_F_X509_PUBKEY_DECODE 148
|
||||||
|
# define X509_F_X509_PUBKEY_GET 161
|
||||||
# define X509_F_X509_PUBKEY_GET0 119
|
# define X509_F_X509_PUBKEY_GET0 119
|
||||||
# define X509_F_X509_PUBKEY_SET 120
|
# define X509_F_X509_PUBKEY_SET 120
|
||||||
# define X509_F_X509_REQ_CHECK_PRIVATE_KEY 144
|
# define X509_F_X509_REQ_CHECK_PRIVATE_KEY 144
|
||||||
|
|
@ -93,6 +96,7 @@ int ERR_load_X509_strings(void);
|
||||||
# define X509_R_CRL_ALREADY_DELTA 127
|
# define X509_R_CRL_ALREADY_DELTA 127
|
||||||
# define X509_R_CRL_VERIFY_FAILURE 131
|
# define X509_R_CRL_VERIFY_FAILURE 131
|
||||||
# define X509_R_IDP_MISMATCH 128
|
# define X509_R_IDP_MISMATCH 128
|
||||||
|
# define X509_R_INVALID_ATTRIBUTES 138
|
||||||
# define X509_R_INVALID_DIRECTORY 113
|
# define X509_R_INVALID_DIRECTORY 113
|
||||||
# define X509_R_INVALID_FIELD_NAME 119
|
# define X509_R_INVALID_FIELD_NAME 119
|
||||||
# define X509_R_INVALID_TRUST 123
|
# define X509_R_INVALID_TRUST 123
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -364,8 +364,9 @@ struct ISSUING_DIST_POINT_st {
|
||||||
|
|
||||||
# define EXFLAG_INVALID_POLICY 0x800
|
# define EXFLAG_INVALID_POLICY 0x800
|
||||||
# define EXFLAG_FRESHEST 0x1000
|
# define EXFLAG_FRESHEST 0x1000
|
||||||
/* Self signed */
|
# define EXFLAG_SS 0x2000 /* cert is apparently self-signed */
|
||||||
# define EXFLAG_SS 0x2000
|
|
||||||
|
# define EXFLAG_NO_FINGERPRINT 0x100000
|
||||||
|
|
||||||
# define KU_DIGITAL_SIGNATURE 0x0080
|
# define KU_DIGITAL_SIGNATURE 0x0080
|
||||||
# define KU_NON_REPUDIATION 0x0040
|
# define KU_NON_REPUDIATION 0x0040
|
||||||
|
|
@ -497,10 +498,10 @@ DECLARE_ASN1_FUNCTIONS(OTHERNAME)
|
||||||
DECLARE_ASN1_FUNCTIONS(EDIPARTYNAME)
|
DECLARE_ASN1_FUNCTIONS(EDIPARTYNAME)
|
||||||
int OTHERNAME_cmp(OTHERNAME *a, OTHERNAME *b);
|
int OTHERNAME_cmp(OTHERNAME *a, OTHERNAME *b);
|
||||||
void GENERAL_NAME_set0_value(GENERAL_NAME *a, int type, void *value);
|
void GENERAL_NAME_set0_value(GENERAL_NAME *a, int type, void *value);
|
||||||
void *GENERAL_NAME_get0_value(GENERAL_NAME *a, int *ptype);
|
void *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype);
|
||||||
int GENERAL_NAME_set0_othername(GENERAL_NAME *gen,
|
int GENERAL_NAME_set0_othername(GENERAL_NAME *gen,
|
||||||
ASN1_OBJECT *oid, ASN1_TYPE *value);
|
ASN1_OBJECT *oid, ASN1_TYPE *value);
|
||||||
int GENERAL_NAME_get0_otherName(GENERAL_NAME *gen,
|
int GENERAL_NAME_get0_otherName(const GENERAL_NAME *gen,
|
||||||
ASN1_OBJECT **poid, ASN1_TYPE **pvalue);
|
ASN1_OBJECT **poid, ASN1_TYPE **pvalue);
|
||||||
|
|
||||||
char *i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,
|
char *i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,
|
||||||
|
|
@ -661,6 +662,8 @@ uint32_t X509_get_key_usage(X509 *x);
|
||||||
uint32_t X509_get_extended_key_usage(X509 *x);
|
uint32_t X509_get_extended_key_usage(X509 *x);
|
||||||
const ASN1_OCTET_STRING *X509_get0_subject_key_id(X509 *x);
|
const ASN1_OCTET_STRING *X509_get0_subject_key_id(X509 *x);
|
||||||
const ASN1_OCTET_STRING *X509_get0_authority_key_id(X509 *x);
|
const ASN1_OCTET_STRING *X509_get0_authority_key_id(X509 *x);
|
||||||
|
const GENERAL_NAMES *X509_get0_authority_issuer(X509 *x);
|
||||||
|
const ASN1_INTEGER *X509_get0_authority_serial(X509 *x);
|
||||||
|
|
||||||
int X509_PURPOSE_get_count(void);
|
int X509_PURPOSE_get_count(void);
|
||||||
X509_PURPOSE *X509_PURPOSE_get0(int idx);
|
X509_PURPOSE *X509_PURPOSE_get0(int idx);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Generated by util/mkerr.pl DO NOT EDIT
|
* Generated by util/mkerr.pl DO NOT EDIT
|
||||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||||
* this file except in compliance with the License. You can obtain a copy
|
* this file except in compliance with the License. You can obtain a copy
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
#ifndef HEADER_X509V3ERR_H
|
#ifndef HEADER_X509V3ERR_H
|
||||||
# define HEADER_X509V3ERR_H
|
# define HEADER_X509V3ERR_H
|
||||||
|
|
||||||
|
# ifndef HEADER_SYMHACKS_H
|
||||||
|
# include <openssl/symhacks.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
@ -34,6 +38,7 @@ int ERR_load_X509V3_strings(void);
|
||||||
# define X509V3_F_I2S_ASN1_IA5STRING 149
|
# define X509V3_F_I2S_ASN1_IA5STRING 149
|
||||||
# define X509V3_F_I2S_ASN1_INTEGER 120
|
# define X509V3_F_I2S_ASN1_INTEGER 120
|
||||||
# define X509V3_F_I2V_AUTHORITY_INFO_ACCESS 138
|
# define X509V3_F_I2V_AUTHORITY_INFO_ACCESS 138
|
||||||
|
# define X509V3_F_I2V_AUTHORITY_KEYID 173
|
||||||
# define X509V3_F_LEVEL_ADD_NODE 168
|
# define X509V3_F_LEVEL_ADD_NODE 168
|
||||||
# define X509V3_F_NOTICE_SECTION 132
|
# define X509V3_F_NOTICE_SECTION 132
|
||||||
# define X509V3_F_NREF_NOS 133
|
# define X509V3_F_NREF_NOS 133
|
||||||
|
|
@ -74,6 +79,7 @@ int ERR_load_X509V3_strings(void);
|
||||||
# define X509V3_F_V2I_TLS_FEATURE 165
|
# define X509V3_F_V2I_TLS_FEATURE 165
|
||||||
# define X509V3_F_V3_GENERIC_EXTENSION 116
|
# define X509V3_F_V3_GENERIC_EXTENSION 116
|
||||||
# define X509V3_F_X509V3_ADD1_I2D 140
|
# define X509V3_F_X509V3_ADD1_I2D 140
|
||||||
|
# define X509V3_F_X509V3_ADD_LEN_VALUE 174
|
||||||
# define X509V3_F_X509V3_ADD_VALUE 105
|
# define X509V3_F_X509V3_ADD_VALUE 105
|
||||||
# define X509V3_F_X509V3_EXT_ADD 104
|
# define X509V3_F_X509V3_EXT_ADD 104
|
||||||
# define X509V3_F_X509V3_EXT_ADD_ALIAS 106
|
# define X509V3_F_X509V3_EXT_ADD_ALIAS 106
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Version 1.1.1
|
Version 1.1.1s
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
if (CMAKE_SYSTEM MATCHES "Linux*")
|
if (CMAKE_SYSTEM MATCHES "Linux*")
|
||||||
# Linux Specific flags
|
# Linux Specific flags
|
||||||
set (OPENSSL_SSL ${CMAKE_CURRENT_LIST_DIR}/openssl/1.0/lin64/libssl.a)
|
set (OPENSSL_SSL ${CMAKE_CURRENT_LIST_DIR}/openssl/1.1/lin64/libssl.a)
|
||||||
set (OPENSSL_CRYPTO ${CMAKE_CURRENT_LIST_DIR}/openssl/1.0/lin64/libcrypto.a)
|
set (OPENSSL_CRYPTO ${CMAKE_CURRENT_LIST_DIR}/openssl/1.1/lin64/libcrypto.a)
|
||||||
set (OPENSSL_INCLUDE ${CMAKE_CURRENT_LIST_DIR}/openssl/1.0/include)
|
set (OPENSSL_INCLUDE ${CMAKE_CURRENT_LIST_DIR}/openssl/1.1/include)
|
||||||
|
|
||||||
# opencore-amr libraries
|
# opencore-amr libraries
|
||||||
set (OPENCORE_AMRNB ${CMAKE_CURRENT_LIST_DIR}/opencore-amr/linux/libopencore-amrnb.a)
|
set (OPENCORE_AMRNB ${CMAKE_CURRENT_LIST_DIR}/opencore-amr/linux/libopencore-amrnb.a)
|
||||||
|
|
@ -36,6 +36,12 @@ if (CMAKE_SYSTEM MATCHES "Linux*")
|
||||||
set (PCAP_INCLUDE ${CMAKE_CURRENT_LIST_DIR}/pcap/include)
|
set (PCAP_INCLUDE ${CMAKE_CURRENT_LIST_DIR}/pcap/include)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (ANDROID_ABI)
|
||||||
|
# Linux Specific flags
|
||||||
|
set (OPENSSL_SSL ${CMAKE_CURRENT_LIST_DIR}/openssl/1.1/android/${ANDROID_ABI}/libssl.a)
|
||||||
|
set (OPENSSL_CRYPTO ${CMAKE_CURRENT_LIST_DIR}/openssl/1.1/android/${ANDROID_ABI}/libcrypto.a)
|
||||||
|
set (OPENSSL_INCLUDE ${CMAKE_CURRENT_LIST_DIR}/openssl/1.1/include)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (CMAKE_SYSTEM MATCHES "Windows*")
|
if (CMAKE_SYSTEM MATCHES "Windows*")
|
||||||
# Sndfile
|
# Sndfile
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue